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

fix: create CEA object when enrolling using a license flow [PALM] #19

Conversation

0x29a
Copy link
Member

@0x29a 0x29a commented Apr 22, 2024

Description

This fix is similar to #14, but it's for license-based enrollment flow.

Testing steps

Follow testing steps from #14 up until Add a ledger here step. Be sure to use open-craft/edx-platform#656 branch for edx-platform during the devstack setup. Then:

  1. Register some test user.
  2. Note a UUID of some enterprise customer and its enterprise catalog.
  3. Add an agreement here: http://localhost:18170/admin/subscriptions/customeragreement/ using UUIDs from №2.
  4. Add a subscription here: http://localhost:18170/admin/subscriptions/subscriptionplan/ using UUIDs from №2. You can specify these details:
    Is active: check.
    Number of Licenses: 200.
    Salesforce opportunity line item: `00kNFJHRVSD683NDI8`.
    Product: `B2B Paid`.
    Should auto apply licenses: `Yes`.
    Reason for change: `New Subscription`.
    
  5. The previous step should create 200 licenses here: http://localhost:18170/admin/subscriptions/license/. Choose one of them, set it to be Activated and set LMS user ID to the ID of the user you created in №1.
  6. You may also need to add an assignment here: http://localhost:18160/admin/catalog/enterprisecatalogroleassignment/
    email: [email protected]
    role: enterprise_catalog_admin
    applies_to_all_contexts: true
    
  7. Now add the test user to the chosen enterprise customer with an invitation-only course in its catalog and try enrolling this user to this course via the enterprise learner portal MFE.

@0x29a 0x29a force-pushed the 0x29a/bb8808/cea-license-flow-palm-backport branch from b1f6a50 to f6271b4 Compare April 22, 2024 17:26
@0x29a 0x29a force-pushed the 0x29a/bb8808/cea-license-flow-palm-backport branch from f6271b4 to f08ea92 Compare April 22, 2024 17:38
@0x29a 0x29a changed the title fix: create CEA object when enrolling using a license flow [BACKPORT][PALM] fix: create CEA object when enrolling using a license flow [PALM] Apr 22, 2024
@tecoholic tecoholic merged commit 8281539 into opencraft-release/palm.1 May 8, 2024
6 checks passed
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.

2 participants