{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-enterprise/issues/170","repository_url":"https://api.github.com/repos/edx/edx-enterprise","labels_url":"https://api.github.com/repos/edx/edx-enterprise/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-enterprise/issues/170/comments","events_url":"https://api.github.com/repos/edx/edx-enterprise/issues/170/events","html_url":"https://github.com/edx/edx-enterprise/pull/170","id":250678784,"number":170,"title":"[ENT-341] Change `enterprise-catalogs` & `programs` endpoints to meet requirements","user":{"login":"UmanShahzad","id":10018065,"avatar_url":"https://avatars0.githubusercontent.com/u/10018065?v=4","gravatar_id":"","url":"https://api.github.com/users/UmanShahzad","html_url":"https://github.com/UmanShahzad","followers_url":"https://api.github.com/users/UmanShahzad/followers","following_url":"https://api.github.com/users/UmanShahzad/following{/other_user}","gists_url":"https://api.github.com/users/UmanShahzad/gists{/gist_id}","starred_url":"https://api.github.com/users/UmanShahzad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UmanShahzad/subscriptions","organizations_url":"https://api.github.com/users/UmanShahzad/orgs","repos_url":"https://api.github.com/users/UmanShahzad/repos","events_url":"https://api.github.com/users/UmanShahzad/events{/privacy}","received_events_url":"https://api.github.com/users/UmanShahzad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"douglashall","id":224634,"avatar_url":"https://avatars2.githubusercontent.com/u/224634?v=4","gravatar_id":"","url":"https://api.github.com/users/douglashall","html_url":"https://github.com/douglashall","followers_url":"https://api.github.com/users/douglashall/followers","following_url":"https://api.github.com/users/douglashall/following{/other_user}","gists_url":"https://api.github.com/users/douglashall/gists{/gist_id}","starred_url":"https://api.github.com/users/douglashall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglashall/subscriptions","organizations_url":"https://api.github.com/users/douglashall/orgs","repos_url":"https://api.github.com/users/douglashall/repos","events_url":"https://api.github.com/users/douglashall/events{/privacy}","received_events_url":"https://api.github.com/users/douglashall/received_events","type":"User","site_admin":false},"assignees":[{"login":"douglashall","id":224634,"avatar_url":"https://avatars2.githubusercontent.com/u/224634?v=4","gravatar_id":"","url":"https://api.github.com/users/douglashall","html_url":"https://github.com/douglashall","followers_url":"https://api.github.com/users/douglashall/followers","following_url":"https://api.github.com/users/douglashall/following{/other_user}","gists_url":"https://api.github.com/users/douglashall/gists{/gist_id}","starred_url":"https://api.github.com/users/douglashall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglashall/subscriptions","organizations_url":"https://api.github.com/users/douglashall/orgs","repos_url":"https://api.github.com/users/douglashall/repos","events_url":"https://api.github.com/users/douglashall/events{/privacy}","received_events_url":"https://api.github.com/users/douglashall/received_events","type":"User","site_admin":false},{"login":"UmanShahzad","id":10018065,"avatar_url":"https://avatars0.githubusercontent.com/u/10018065?v=4","gravatar_id":"","url":"https://api.github.com/users/UmanShahzad","html_url":"https://github.com/UmanShahzad","followers_url":"https://api.github.com/users/UmanShahzad/followers","following_url":"https://api.github.com/users/UmanShahzad/following{/other_user}","gists_url":"https://api.github.com/users/UmanShahzad/gists{/gist_id}","starred_url":"https://api.github.com/users/UmanShahzad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UmanShahzad/subscriptions","organizations_url":"https://api.github.com/users/UmanShahzad/orgs","repos_url":"https://api.github.com/users/UmanShahzad/repos","events_url":"https://api.github.com/users/UmanShahzad/events{/privacy}","received_events_url":"https://api.github.com/users/UmanShahzad/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2017-08-16T16:01:48Z","updated_at":"2017-08-25T15:08:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-enterprise/pulls/170","html_url":"https://github.com/edx/edx-enterprise/pull/170","diff_url":"https://github.com/edx/edx-enterprise/pull/170.diff","patch_url":"https://github.com/edx/edx-enterprise/pull/170.patch"},"body":"**Description:** This PR changes the endpoints associated with the `enterprise-catalogs` and `programs` resources to meet their requirements.\r\n\r\nFor the `enterprise-catalogs` ticket, we change the `list` version of the endpoint to serialize the `EnterpriseCustomerCatalog` model, rather than send an unfiltered query to course discovery's `/search/all/`.\r\n\r\nFor the `programs` endpoint, we ran into an issue where `/search/all/` for Program UUIDs didn't pass back enough information for certain use cases like implementing the Programs landing page.\r\n\r\nIn the process of refactoring the `programs` endpoint, we also added a `list` version (because no loss) where `/enterprise/api/v1/programs/` returns all available Programs. @douglashall if this is not desired, remove the `list` functionality + its tests.\r\n\r\n**JIRA:** [ENT-341](https://openedx.atlassian.net/browse/ENT-341)\r\n\r\n**Dependencies:** This came from [ENT-486](https://openedx.atlassian.net/browse/ENT-486), so it essentially depends on it in its branch's commit history.\r\n\r\n**Merge deadline:** Asap.\r\n\r\n**Testing instructions:**\r\n\r\n1. Follow the testing instructions from #164, but obviously take note of what to expect from the results of your queries now that the endpoints have changed.\r\n\r\n**Merge checklist:**\r\n\r\n- [ ] Check that the versions of the requirements in the `platform-master.in` file match edx-platform.\r\n- [ ] New requirements are in the right place (`base.in` if only used in enterprise; in the correct `platform-****.in` files if they're hosted in edx-platform)\r\n- [ ] Regenerate requirements with `make upgrade && make requirements` (and make sure to fix any errors).\r\n  **DO NOT** just add dependencies to `requirements/*.txt` files.\r\n- [ ] All reviewers approved\r\n- [ ] CI build is green\r\n- [ ] Version bumped\r\n- [ ] Changelog record added\r\n- [ ] Documentation updated (not only docstrings)\r\n- [ ] Commits are (reasonably) squashed\r\n- [ ] Translations are updated\r\n- [ ] PR author is listed in AUTHORS\r\n\r\n**Post merge:**\r\n- [ ] Create a tag\r\n- [ ] Check new version is pushed to PyPi after tag-triggered build is finished.\r\n- [ ] Delete working branch (if not needed anymore)\r\n- [ ] edx-platform PR (be sure to include edx-platform requirements upgrades that were present in this PR)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/edx/edx-enterprise/issues/comments/324948726","html_url":"https://github.com/edx/edx-enterprise/pull/170#issuecomment-324948726","issue_url":"https://api.github.com/repos/edx/edx-enterprise/issues/170","id":324948726,"user":{"login":"itsjeyd","id":961441,"avatar_url":"https://avatars0.githubusercontent.com/u/961441?v=4","gravatar_id":"","url":"https://api.github.com/users/itsjeyd","html_url":"https://github.com/itsjeyd","followers_url":"https://api.github.com/users/itsjeyd/followers","following_url":"https://api.github.com/users/itsjeyd/following{/other_user}","gists_url":"https://api.github.com/users/itsjeyd/gists{/gist_id}","starred_url":"https://api.github.com/users/itsjeyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsjeyd/subscriptions","organizations_url":"https://api.github.com/users/itsjeyd/orgs","repos_url":"https://api.github.com/users/itsjeyd/repos","events_url":"https://api.github.com/users/itsjeyd/events{/privacy}","received_events_url":"https://api.github.com/users/itsjeyd/received_events","type":"User","site_admin":false},"created_at":"2017-08-25T15:08:56Z","updated_at":"2017-08-25T15:08:56Z","body":"@douglashall Alright, thanks for the quick reply :)"}}
{"actor":{"display_login":"itsjeyd"}}