{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/18470","repository_url":"https://api.github.com/repos/edx/edx-platform","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/18470/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/18470/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/18470/events","html_url":"https://github.com/edx/edx-platform/pull/18470","id":336214714,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NzIxMDQ1","number":18470,"title":"ENT-1052 discount by enterprise catalog","user":{"login":"zubair-arbi","id":5072991,"node_id":"MDQ6VXNlcjUwNzI5OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/5072991?v=4","gravatar_id":"","url":"https://api.github.com/users/zubair-arbi","html_url":"https://github.com/zubair-arbi","followers_url":"https://api.github.com/users/zubair-arbi/followers","following_url":"https://api.github.com/users/zubair-arbi/following{/other_user}","gists_url":"https://api.github.com/users/zubair-arbi/gists{/gist_id}","starred_url":"https://api.github.com/users/zubair-arbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zubair-arbi/subscriptions","organizations_url":"https://api.github.com/users/zubair-arbi/orgs","repos_url":"https://api.github.com/users/zubair-arbi/repos","events_url":"https://api.github.com/users/zubair-arbi/events{/privacy}","received_events_url":"https://api.github.com/users/zubair-arbi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-27T12:47:36Z","updated_at":"2018-06-28T18:21:30Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/18470","html_url":"https://github.com/edx/edx-platform/pull/18470","diff_url":"https://github.com/edx/edx-platform/pull/18470.diff","patch_url":"https://github.com/edx/edx-platform/pull/18470.patch"},"body":"@asadiqbal08 @saleem-latif @muhammad-ammar @irfanuddinahmad @georgebabey \r\n**Description:** Add/Show discount for enterprise learners by provided valid enterprise catalog UUID.\r\n\r\n**JIRA:** [ENT-1052](https://openedx.atlassian.net/browse/ENT-1052)\r\n\r\n**Remaining tasks:** Unittests\r\n\r\n**Dependencies:**\r\n1. edx-enterprise: https://github.com/edx/edx-enterprise/pull/333\r\n2. Ecommerce: https://github.com/edx/ecommerce/pull/1830\r\n\r\n**Merge deadline:** 29 Jun 2018\r\n\r\n**Installation instructions:**  \r\n\r\n1. Checkout edx-platform to this branch `zub/ENT-1052-discount-by-enterprise-catalog`.\r\n2. Install `edx-enterprise` from branch `zub/ENT-1052-discount-by-enterprise-catalog` in `edx-platform`.\r\n3. Checkout ecommerce to branch `zub/ENT-1052-discount-by-enterprise-catalog`.\r\n4. In ecommerce django admin (admin/waffle/switch/) verify following waffle flags:\r\n```\r\nforce_anonymous_user_response_for_basket_calculate = False\r\nenable_enterprise_offers = True\r\nenable_enterprise_on_runtime = True\r\n```\r\n\r\n**Testing instructions:**\r\n1. Create an enterprise with 2 catalogs with a verified course (both catalogs should have this verified course)\r\n2. For catalog A, create enterprise offer with 100% discount.\r\n3. For catalog B, create enterprise offer with 15% discount.\r\n4. Now access the enterprise course enrollment URL with the `UUID` of catalog A, i.e. `http://zubair.localhost:8000/enterprise/72416e52-8c77-4860-9584-15e5b06220fb/course/course-v1:edX+TEST_01+2016_R1/enroll/?enterprise_customer_catalog_uuid=a113c7e2-13ac-46ae-9e24-b75bf7c0058d`\r\n5. Verify that learner sees 100 discount on verified seat for verified course\r\n6. Clicking on 'Continue' button (after consenting) user is redirect to courseware page after automatic enrollment (100% discount).\r\n7. Now access the enterprise course enrollment URL with the `UUID` of catalog B, i.e. `http://zubair.localhost:8000/enterprise/72416e52-8c77-4860-9584-15e5b06220fb/course/course-v1:edX+TEST_01+2016_R1/enroll/?enterprise_customer_catalog_uuid=6eca3efb-f3a0-4c08-806f-c6e6b65d61cb`\r\n8. Verify that learner sees 15 discount on verified seat for verified course\r\n9. Clicking on 'Continue' button (after consenting) user is redirect to basket page with 15% discount applied by the learner's enterprise."},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/401127871","html_url":"https://github.com/edx/edx-platform/pull/18470#issuecomment-401127871","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/18470","id":401127871,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTEyNzg3MQ==","user":{"login":"edx-status-bot","id":9448959,"node_id":"MDQ6VXNlcjk0NDg5NTk=","avatar_url":"https://avatars0.githubusercontent.com/u/9448959?v=4","gravatar_id":"","url":"https://api.github.com/users/edx-status-bot","html_url":"https://github.com/edx-status-bot","followers_url":"https://api.github.com/users/edx-status-bot/followers","following_url":"https://api.github.com/users/edx-status-bot/following{/other_user}","gists_url":"https://api.github.com/users/edx-status-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/edx-status-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx-status-bot/subscriptions","organizations_url":"https://api.github.com/users/edx-status-bot/orgs","repos_url":"https://api.github.com/users/edx-status-bot/repos","events_url":"https://api.github.com/users/edx-status-bot/events{/privacy}","received_events_url":"https://api.github.com/users/edx-status-bot/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T18:21:30Z","updated_at":"2018-06-28T18:21:30Z","author_association":"NONE","body":"Your PR has finished running tests. There were no failures."}}
{"actor":{"display_login":"edx-status-bot"}}