workforce-data-initiative / programs-registry

Machine readable, public directory of programs and services offered by eligible training providers
https://docs.brighthive.io
Apache License 2.0
1 stars 0 forks source link

GET programs by organization filter incorrectly returns programs for all organizations #13

Closed akebi closed 6 years ago

akebi commented 6 years ago

Observed Behavior: For end point /api/organizations/<organization_id>/programs, GET request returns programs for all organizations Expected Behavior: GET with organization_id should filter programs only for that organization

gitgik commented 6 years ago

Fixed. Check this out @akebi https://github.com/brighthive/program-registry/pull/14

akebi commented 6 years ago

@gitgik the test cases would need to be updated as well, the current tests will pass as long as results are returned - whether they are part of the query condition or not