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: update task and signals responsible for cert available dates in Credentials #34363

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

justinhynes
Copy link
Contributor

Description

[APER-3229]

The monolith and the Credentials IDA keep independent records of a course runs certificate availability/visibility preferences. This PR aims to improve the communication between the monolith and the Credentiala IDA to keep the availability date/preference in sync with the monoliths records.

The current code is too strict and actually prevents valid updates in some configurations.

Additionally, the Credentials IDA doesn't understand the concept of "course pacing" (instructor-paced vs self-paced) and has troubles with courses with an availability date of "end". Instead of having to add the concept of course pacing (and syncing more data between the two systems), this PR proposes sending the end date of a course as the "certificate available date" to Credentials.

This way, the Credentials IDA can manage the visibility of awarded credentials in a course run with a display behavior of "end" using the existing feature set and models of the Credentials service.

@justinhynes justinhynes force-pushed the jhynes/APER-3229_fix-v2 branch 2 times, most recently from dc0f5a2 to 79bcfc9 Compare March 14, 2024 11:33
@justinhynes justinhynes changed the title fix: fix and refactor task annd signals responsible for syncing cert available date updates to Credentials feat: update task and signals responsible for cert available dates in Credentials Mar 14, 2024
@justinhynes justinhynes force-pushed the jhynes/APER-3229_fix-v2 branch from bd11294 to 5a9bec7 Compare March 14, 2024 15:13
@justinhynes justinhynes marked this pull request as ready for review March 14, 2024 15:43
@justinhynes justinhynes requested a review from a team as a code owner March 14, 2024 15:43
openedx/core/djangoapps/programs/signals.py Show resolved Hide resolved
openedx/core/djangoapps/programs/tasks.py Show resolved Hide resolved
openedx/core/djangoapps/programs/tasks.py Outdated Show resolved Hide resolved
openedx/core/djangoapps/programs/tasks.py Outdated Show resolved Hide resolved
openedx/core/djangoapps/programs/tests/test_signals.py Outdated Show resolved Hide resolved
Copy link
Member

@deborahgu deborahgu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one non-blocking nit, and one potentially blocking "are you sure you did that on purpose", but I will go ahead and put an approval on this and trust your judgment about both of them..

openedx/core/djangoapps/programs/signals.py Show resolved Hide resolved
openedx/core/djangoapps/programs/signals.py Show resolved Hide resolved
@justinhynes justinhynes force-pushed the jhynes/APER-3229_fix-v2 branch from e9d0a16 to b54bef6 Compare March 15, 2024 18:30
… Credentials

[APER-3229]

The monolith and the Credentials IDA keep independent records of a course runs certificate availability/visibility preferences. This PR aims to improve the communication between the monolith and the Credentiala IDA to keep the availability date/preference in sync with the monoliths records.

The current code is too strict and actually prevents valid updates in some configurations.

Additionally, the Credentials IDA doesn't understand the concept of "course pacing" (instructor-paced vs self-paced) and has troubles with courses with an availability date of "end". Instead of having to add the concept of course pacing (and syncing more data between the two systems), this PR proposes sending the end date of a course as the "certificate available date" to Credentials.

This way, the Credentials IDA can manage the visibility of awarded credentials in a course run with a display behavior of "end" using the existing feature set and models of the Credentials service.
@justinhynes justinhynes force-pushed the jhynes/APER-3229_fix-v2 branch from b54bef6 to 8d7a13f Compare March 18, 2024 12:30
@justinhynes justinhynes merged commit a976498 into master Mar 18, 2024
67 checks passed
@justinhynes justinhynes deleted the jhynes/APER-3229_fix-v2 branch March 18, 2024 13:11
@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.

3 participants