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

feat: add new course access error_code for enterprise learners in future courses (2nd try) #33947

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

pwnage101
Copy link
Contributor

Normally, the course API would return an access error_code of course_not_started if the course has not started yet. This change breaks that up into two codes:

  • if the course has not started:
    • return error_code=course_not_started_enterprise_learner if the learner is enrolled as a subsidized enterprise learner.
    • else, return error_code=course_not_started.

This supports a change to the frontend which will interpret course_not_started_enterprise_learner differently and trigger a redirect to the enterprise (B2B) learner dashboard instead of the B2C dashboard.

ENT-8078

…ure courses (2nd try)

Normally, the course API would return an access error_code of
`course_not_started` if the course has not started yet.  This change
breaks that up into two codes:

* if the course has not started:
  * return error_code=`course_not_started_enterprise_learner` if the
    learner is enrolled as a subsidized enterprise learner.
  * else, return error_code=`course_not_started`.

This supports a change to the frontend which will interpret
`course_not_started_enterprise_learner` differently and trigger a
redirect to the enterprise (B2B) learner dashboard instead of the B2C
dashboard.

ENT-8078
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-8078-3 branch from dc5b321 to 9ef8ce6 Compare December 19, 2023 02:54
@pwnage101 pwnage101 merged commit 9c48e38 into master Dec 19, 2023
64 checks passed
@pwnage101 pwnage101 deleted the pwnage101/ENT-8078-3 branch December 19, 2023 16:50
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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

Successfully merging this pull request may close these issues.

4 participants