Skip to content

Enhance course request views with semester information - #1946

Merged
vikrantwiz02 merged 1 commit into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:prod/acad-react
Aug 11, 2026
Merged

Enhance course request views with semester information#1946
vikrantwiz02 merged 1 commit into
FusionIIIT:prod/acad-reactfrom
vikrantwiz02:prod/acad-react

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

This pull request enhances the academic procedures API by improving the detail and robustness of course request listings and batch allocation logic. The main changes include adding semester information to various request endpoints, ensuring related data is efficiently fetched, and making the batch allocation process for course replacements more resilient when expected registrations are missing.

Improvements to API Response Data:

  • Added the semester number (from course_slot.semester.semester_no) to the response objects for course replacement, add, and drop requests in both student and admin listing endpoints. This provides more context in API responses for consumers. [1] [2] [3] [4] [5]

  • Updated queryset select_related calls in admin list endpoints (admin_list_requests, admin_list_add_requests, admin_list_drop_requests) to include course_slot__semester, optimizing database queries and reducing the number of queries required when accessing semester information. [1] [2] [3]

Robustness in Batch Course Replacement Allocation:

  • Modified the allocate_all function to allow processing only a subset of request IDs if provided, making the batch process more flexible.

  • Improved handling when a course registration to be replaced does not exist: such requests are now skipped (with a status and reason returned), instead of causing the batch process to fail. This ensures the batch continues processing valid requests even if some are inconsistent.

@vikrantwiz02
vikrantwiz02 merged commit fcf3b83 into FusionIIIT:prod/acad-react Aug 11, 2026
1 check passed
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.

1 participant