feat: surface audit expiration date#248
Conversation
There was a problem hiding this comment.
Pull request overview
Adds new enrollment response fields to expose whether an enrollment is audit and (for audit enrollments) the access expiration date derived from the course’s verified-mode upgrade deadline.
Changes:
- Extend
CourseEnrollmentSerializer/CourseEnrollmentsApiListSerializerwithisAuditandaccessExpirationDate. - Add/adjust tests asserting the new response fields for the single-enrollment endpoint.
- Update API list fixture expectations to include the new fields.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
openedx/core/djangoapps/enrollments/serializers.py |
Adds isAudit / accessExpirationDate serializer fields and computation logic. |
openedx/core/djangoapps/enrollments/tests/test_views.py |
Updates enrollment endpoint tests to assert new fields. |
openedx/core/djangoapps/enrollments/tests/fixtures/course-enrollments-api-list-valid-data.json |
Updates expected API list results to include new fields. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ad233cd to
1329619
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
1329619 to
bac26e4
Compare
bac26e4 to
87a1c4f
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
87a1c4f to
5b667c1
Compare
5b667c1 to
94eeaad
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@ankit-sonata |
Audit expiration date https://2u-internal.atlassian.net/browse/SUBS-102
Adding the LMS enrollment endpoint, which will therefore proxy through the partner API enrollment endpoint.