bdelacretaz commented on code in PR #146: URL: https://github.com/apache/comdev-site/pull/146#discussion_r1406280411
########## static/js/components/person-projects.js: ########## @@ -0,0 +1,52 @@ +import fetchPublicData from "./whimsy-loader.js"; +const projects = await fetchPublicData('public_ldap_projects.json'); +var projectsById = {}; + +{ + Object.keys(projects.projects).forEach(project => { + projects.projects[project].members.forEach(m => { + if (!projectsById[m]) { + projectsById[m] = {}; + } + projectsById[m][project] = { pmc: false }; + }) + projects.projects[project].owners.forEach(m => { + if (!projectsById[m]) { + projectsById[m] = {}; + } + projectsById[m][project] = { pmc: true }; + }) + }) +} + +// some projects websites have names that +// differ from their Whimsy name +const projectToWebsite = { Review Comment: Ok thanks - so far considering there's just one such exception, relying on hardcoded things that can move unexpectedly feels risky. On https://whimsy.apache.org/docs/hardcoded.cgi , the `lib/whimsy/asf/site.rb`link for example became invalid. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@community.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@community.apache.org For additional commands, e-mail: dev-h...@community.apache.org