Skip to content

feat: phase 4 - ticket history, holidays, room fit and review fixes - #6

Merged
ishanKulkarni13 merged 18 commits into
mainfrom
feat/phase-4
Nov 28, 2026
Merged

ishanKulkarni13 merged 18 commits into
mainfrom
feat/phase-4

Conversation

@ishanKulkarni13

Copy link
Copy Markdown
Member

Phase 4: three deferred features, and the fixes from a review of the first three phases.

New

  • Ticket history: GET /api/v1/tickets/{id}/history and a folded "History" list on the ticket page.
  • Holidays and exam weeks: /api/v1/academic-closures, a "Holidays" tab under Campus. Publishing skips closed days and a ticket onto one is blocked.
  • Room fit: a new conflict, ROOM_UNFIT. Room kind only; seats are not checked because class strength is not held.

Fixed

  • A replaced teacher or former HOD could still edit and apply an old draft.
  • Applied changes could be silently discarded by publish, or become impossible to revert.
  • Several review defects: stale approvals, one person in two roles, simultaneous last approvals, late escalation answering 500.
  • Meeting links now have to be http or https.
  • Frontend: editing an extra lecture, linking a ticket as an issue's opener, stale conflicts and rooms, silent failures.
  • Issues link a ticket only for viewers who may open it; one account can be linked to one faculty record.
  • CI secret scan uses the gitleaks binary, which needs no licence.

Behaviour changes worth checking

  • A lab or tutorial can no longer be moved into a room of another kind, including keeping its current unfit room. The base weekly timetable is not checked.
  • A permanent change on a lecture that was already moved once is now refused.
  • Two new migrations: calendar_closure, and a nullable column on ticket_change_item.

Left open

  • No rate limiting on ticket and issue writes.
  • The UI still offers Edit and Apply to a former teacher; the server answers 403.

Tests

  • Local: 261 backend unit and architecture tests, OpenApiContractIT, 385 frontend tests, typecheck, lint and production build.
  • The new and changed integration tests have not run locally; this PR's CI is their first run.
  • Nothing was checked in a browser.

Editing an extra lecture saves again, an issue's opener can link a ticket, stale conflicts and stale rooms are cleared, and failures are shown instead of doing nothing.
…et scan

Issues say which linked tickets the caller may open. An account can be linked to one faculty record only. CI runs the gitleaks binary, which needs no licence, and every backend error code has a message.
…revert and publish

Extra lectures keep their marker, a revert restores the previous one, a started permanent change can still be reverted for its future weeks, publish locks what it replaces, and abandoned revert drafts no longer block others.
ROOM_UNFIT: a lab needs a lab room, theory a classroom, a tutorial a tutorial room or classroom. Room kind only; no class strength is held, so seats are not checked.
A Super Admin records closed days. Publishing creates no lectures on them and a ticket that moves a lecture onto one is blocked. Lectures already on a newly closed day are left to be cancelled.
GET /api/v1/tickets/{id}/history lists what happened to a ticket, from the audit log, to those the audit-view permissions cover. The ticket page shows it folded under History.
# Conflicts:
#	timetia-docs/modules/lecture-rescheduling/changelog.md
#	timetia-docs/modules/lecture-rescheduling/open-questions.md
# Conflicts:
#	backend/src/main/java/com/kibootia/backend/timetable/application/LectureCalendarService.java
#	backend/src/main/java/com/kibootia/backend/timetable/application/RoomAvailabilityService.java
#	frontend/docs/api-reference.md
#	timetia-docs/modules/lecture-rescheduling/changelog.md
# Conflicts:
#	timetia-docs/modules/lecture-rescheduling/changelog.md
# Conflicts:
#	frontend/tests/unit/tickets-screens.test.tsx
…sent or applied

A replaced teacher or former HOD can no longer act on an old draft. Meeting links must be http or https, an HOD reviewer must be one, a review names the version it saw, and several review and permanent-change defects are fixed.
# Conflicts:
#	frontend/src/features/tickets/api.ts
#	timetia-docs/modules/lecture-rescheduling/changelog.md
@sourcery-ai

sourcery-ai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Sorry @ishanKulkarni13, your pull request is larger than the review limit of 150,000 diff characters

@ishanKulkarni13
ishanKulkarni13 merged commit 80b4538 into main Nov 28, 2026
18 of 19 checks 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