Skip to content

Show what an allotment upload actually did, and mark summer rows - #304

Merged
vikrantwiz02 merged 1 commit into
FusionIIIT:acad-mainfrom
vikrantwiz02:acad-summer-upload-feedback
Aug 27, 2026
Merged

Show what an allotment upload actually did, and mark summer rows#304
vikrantwiz02 merged 1 commit into
FusionIIIT:acad-mainfrom
vikrantwiz02:acad-summer-upload-feedback

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

Two things the Allot Courses screen was hiding.

A partial upload was reported as a clean success. The backend answers 207 when some rows are skipped, which axios treats as a success, so the office saw Allotted successfully while rows had been dropped. The notification now distinguishes the two: on a partial upload it reports how many rows were allotted against how many were skipped, and on a failure it carries the reason the backend gives for the failing rows plus the first row number. Both stay open long enough to be read, instead of auto-closing.

A summer registration looked identical to the regular one. A summer term has no semester of its own and anchors to the adjacent one, so the registered-courses table printed the same bare semester number for both. Summer rows now read 4 (Summer), matching how the examination module labels them. The semester picker already separated the two, so only the row itself needed the marker.

425 tests passing, lint:strict clean.

A bulk allotment reported plain success even when the backend had
skipped rows, and a partial upload came back as 2xx so the office was
told everything worked. The notification now reports how many rows were
allotted against how many were skipped, and carries the reason the
backend gives for each failing row along with the first row number,
staying open long enough to be read.

The registered-courses table printed a bare semester number for every
row, so a summer registration was indistinguishable from the regular one
in the term it anchors to. Summer rows now read as such.
@vikrantwiz02
vikrantwiz02 merged commit fc93b6f into FusionIIIT:acad-main Aug 27, 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