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

✨(backend) add admin Enrollment api endpoint #700

Merged
merged 8 commits into from
Mar 25, 2024

Conversation

jbpenrath
Copy link
Member

Purpose

Add an admin api endpoint to manage Enrollment resource.
Furthermore, an enrollment can be active/inactive.
And finally, the enrollment list can filtered through the following criterias:

  • query (course_run.title, course_run.resource_link, course_run.course.code)
  • user_ids
  • course_run_ids
  • ids
  • state
  • is_active

Proposal

  • Allow to list and retrieve enrollments
  • Allow to active/inactive enrollments
  • Allow to filter enrollments

@jbpenrath jbpenrath self-assigned this Mar 20, 2024
@jbpenrath jbpenrath changed the title ✨(backend) add admin readonly Enrollment api endpoint ✨(backend) add admin Enrollment api endpoint Mar 20, 2024
src/backend/joanie/core/api/admin.py Outdated Show resolved Hide resolved
src/backend/joanie/core/filters/admin.py Outdated Show resolved Hide resolved
src/backend/joanie/core/filters/admin.py Outdated Show resolved Hide resolved
src/backend/joanie/core/serializers/admin.py Show resolved Hide resolved
src/backend/joanie/core/serializers/admin.py Show resolved Hide resolved
@jbpenrath jbpenrath requested a review from lunika March 21, 2024 13:58
@jbpenrath jbpenrath force-pushed the feat/admin-api/enrollment-read-only branch from f23ffa1 to 2167379 Compare March 21, 2024 18:05
Add an endpoint to list and retrieve Enrollment resource.
An admin user should be able to enroll/unroll a user.
The enrollment admin api should allow to filter resources through a full text
search on course run title, resource link and course code.
The enrollment admin api should allow to filter resources through
course run ids.
The enrollment admin api should allow to filter resources through
user ids.
The enrollment admin api should allow to filter resources through
their ids.
The enrollment admin api should allow to filter resources through
their active state.
The enrollment admin api should allow to filter resources through
their state.
@jbpenrath jbpenrath force-pushed the feat/admin-api/enrollment-read-only branch from 2167379 to 62aa626 Compare March 25, 2024 10:28
@jbpenrath jbpenrath merged commit e9b6aff into main Mar 25, 2024
17 checks passed
@jbpenrath jbpenrath deleted the feat/admin-api/enrollment-read-only branch March 25, 2024 10:42
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