feat: Move Program Certificate event publishing to the monolith#38677
feat: Move Program Certificate event publishing to the monolith#38677rahulkanneri-2u wants to merge 5 commits into
Conversation
|
Thanks for the pull request, @rahulkanneri-2u! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Submit a signed contributor agreement (CLA)
If you've signed an agreement in the past, you may need to re-sign. Once you've signed the CLA, please allow 1 business day for it to be processed. 🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
Hi @rahulkanneri-2u! It looks like you're contributing on behalf of 2U. In order for your CLA check to turn green (and if you have not done so already), please have your manager reach out to oscm@axim.org to have you added to our existing entity agreement. |
Description
This PR moves program certificate event publishing from the Credentials IDA to the LMS monolith.
When a program certificate is awarded or revoked, the LMS now publishes the following events to the event bus:
PROGRAM_CERTIFICATE_AWARDEDPROGRAM_CERTIFICATE_REVOKEDThese events are disabled by default until the Credentials IDA is ready to consume them instead of relying on direct REST API calls.
Supporting Information
This is related to the initiative to move program certificate lifecycle event publishing into
edx-platformusing[openedx-events](https://github.com/openedx/openedx-events).Testing Instructions
Run the programs task tests:
To test event emission manually, enable the feature flags in your settings:
Trigger a program certificate award or revocation.
Verify that the corresponding event is published to the event bus.
Deadline
None
Other Information
enabled: Falseuntil the Credentials IDA is ready to consume them.ProgramCertificateDatapayload with user information and the program UUID.title,program_type, anduuidfields on the program/certificate are intentionally left as empty strings because the LMS does not have authoritative access to that data at award time.