Skip to content

feat: add instructor task for async batch enrollment (#37216) - #91

Merged
andrey-canon merged 1 commit into
open-release/verawood.nelpfrom
and/FUTUREX-1792
Aug 5, 2026
Merged

andrey-canon merged 1 commit into
open-release/verawood.nelpfrom
and/FUTUREX-1792

Conversation

@andrey-canon

Copy link
Copy Markdown

Description

This is a backport of openedx#37216

Issue # 1792
Migration pr of #79

@johanseto johanseto left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I was looking the way to test, however as its a backport lets continue =)

@andrey-canon
andrey-canon changed the base branch from and/FUTUREX-1331 to open-release/verawood.nelp August 4, 2026 16:55
@andrey-canon

Copy link
Copy Markdown
Author

I was looking the way to test, however as its a backport lets continue =)

The link for the original pr is in the description, there you can find how to test this

* feat: add instructor task for async batch enrollment

* feat: add tests for submit_student_enrollment_batch api function

* feat: add tests for async enrollment and unenrollment processes

* feat: add unit tests for student enrollment utility functions

* refactor: update user identification method

* test:  uncomment tests

* fix: satisfy ruff and pylint rules

* fix: correct state transition

* fix: add type hints for request_user parameter and improve error handling

* fix: improve error messages and task key generation in enrollment processes

* chore: implement suggestions from code review

* fix: update task key generation in tests

* fix: update state transition in bulk enrollment tests

* fix: disable pylint warning for imported User model in enrollment.py

* fix: correct test method names and update state transitions in bulk enrollment tests

* fix: wrap enrollment sync process in a transaction to ensure atomicity

* feat: add site_id parameter to enrollment batch processing

* fix: add site_id to the enrollment batch submission test case

* fix: wrap enrollment and audit operations in a transaction for atomicity
@andrey-canon
andrey-canon merged commit be3844c into open-release/verawood.nelp Aug 5, 2026
40 checks passed
@andrey-canon
andrey-canon temporarily deployed to open-release/verawood.nelp August 5, 2026 20:44 — with GitHub Actions Inactive
@andrey-canon
andrey-canon deployed to open-release/verawood.nelp August 5, 2026 20:44 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
open-release/verawood.nelp — 7345b0f8 Deployed Aug 5, 2026 by andrey-canon via create-jira-issue / create_jira_issue #28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants