feat: allow enrolling learners on invitation only courses #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR ports the changes from the following upstream PRs for Redwood:
feat: adds attribute to hide course prices when zero openedx/edx-enterprise#1788 - The client is no longer using the e-commerce based enrollment flow. So, we don’t have to carry the code drift from this one. However, as the DB migration that was created as a part of this PR has been deployed, this PR adds Migration 0209 that removes the column.Testing Instructions
Setting up the enterprise stack using Tutor
tecoholic/redwood-upgrade
branch of tutor-contrib-enterprisecatalog and install it in your tutor env.enterprise-catalog
entry.bb8935-fixes.py
That should get everything up and running.
Adding Enterprise Data
LMS
seed_enterprise_devstack_data
.Course Discovery
./manage.py refresh_course_metadata
to pull all the data.update_index --disable-change-limit
to update the index.owners
, and thecourse_run > seats
fields are populated by visiting http://discovery.local.edly.io:8381/api/v1/courses/Enterprise Catalog
./manage.py lms migrate_enterprise_catalogs --api_user enterprise_catalog_worker
. If it fails, replaceenterprise_catalog_worker
with your admin username. I didn't find the time to debug this bug yet.courseruns
update_content_metadata --force
andreindex_algolia --force
.License Manager
Get their LMS numerical ID from the LMS admin.
Testing the PR Changes
Note: this requires acting as 2 users simultaneously. Use private mode or 2 profiles or Firefox containers.
Normal Flow
test-enterprise_learner_1
with passwordedx
. The Learner Dashboard should show the following message.http://apps.local.edly.io:8734/test-enterprise
, change this URL tohttp://apps.local.edly.io:8734/learner-portal-enterprise/test-enterprise
.Invite only course
true
and save.test-enterprise_learner_2
. The enrollment should fail and an error message shown in the enterprise learner portal.