Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Repsitory as an optional filter #8

Open
jsatt opened this issue Aug 27, 2014 · 2 comments
Open

Add Repsitory as an optional filter #8

jsatt opened this issue Aug 27, 2014 · 2 comments

Comments

@jsatt
Copy link

jsatt commented Aug 27, 2014

Some brigades may have their site organized with a dedicated page for each project. It would be much more useful to have a filter option, similar to labels, that would allow them to specify which repositories they would like to include in their embed. Allowing multiple repositories would still allow for projects spread out accross multiple repos (infrastructure, backend, frontend, mobile app) to could still allow for one embed dedicated to a single project.

@ondrae
Copy link
Collaborator

ondrae commented Aug 27, 2014

Super interesting and really similar to whats been coming up at Code for San Francisco.

@ondrae
Copy link
Collaborator

ondrae commented Aug 27, 2014

Tasks

  • On /geeks/civicissues/embed when you select an organization, it should bring you to the page /geeks/civicissues/embed/<organization> using js/main.js.
  • In app.py add a new route /geeks/civicissues/embed/<organization>. This route will make a request to http://codeforamerica.org/api/organizations/<organization>/projects and hand off all the projects to the embed template.
  • If the embed template receives projects, then show a select multiple form element listing all the projects alphabetically. templates/embed.html
  • Each project selected should update the embed iframe code with a &projects= parameter. Use js/main.js
  • The /geeks/civicissues/widget route in app.py should accept the projects parameter and use to add &project_name=project 1, project 2, project 3 to the CfAPI request.
  • The Issues endpoint in the CfAPI will need to be updated to take in the project names and do an OR query against each of them to get all matching issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants