We got a low priority request from @spjika to show the issues from specific projects. We can't do this yet and should add the ability. A few different hurdles in setting this up.
The Issue Finder expects issues to be the top level response. Right now, specific projects don't have an /issues endpoint, so the Issue Finder code would need to know to navigate down to the issues.
I called this low priority, because people can easily roll their own version of this feature using either the CfAPI or GitHub's API.
Files
app.py, templates/embed.html
Tasks
[ ] On the embed form if a specific group is chosen, then show another drop down which lists all of that groups projects.
[ ] If a specific project is chose, then have the widget url be something like https://www.codeforamerica.org/geeks/civicissues/widget?organization_name=Code-for-San-Francisco&project=https://github.com/sfbrigade/sfbrigade.github.io
[ ] Have that url ask the CfAPI for http://codeforamerica.org/api/organizations/Code-for-San-Francisco/projects?q=https://github.com/sfbrigade/sfbrigade.github.io
[ ] The Issue Finder will need to know to look for response['objects']['issues'] rather than just response['objects']
Description
We got a low priority request from @spjika to show the issues from specific projects. We can't do this yet and should add the ability. A few different hurdles in setting this up.
issues
to be the top level response. Right now, specific projects don't have an /issues endpoint, so the Issue Finder code would need to know to navigate down to the issues.I called this low priority, because people can easily roll their own version of this feature using either the CfAPI or GitHub's API.
Files
app.py, templates/embed.html
Tasks
https://www.codeforamerica.org/geeks/civicissues/widget?organization_name=Code-for-San-Francisco&project=https://github.com/sfbrigade/sfbrigade.github.io
http://codeforamerica.org/api/organizations/Code-for-San-Francisco/projects?q=https://github.com/sfbrigade/sfbrigade.github.io
response['objects']['issues']
rather than justresponse['objects']