Bulk delete availability slots from the list view #57

Closed
opened 2026-07-06 01:24:56 +00:00 by thatguygriff · 0 comments
Owner

Problem

On the My Availability admin page, instructors can only delete availability slots one at a time. Since a single window is stored as many lesson-length slots (and weekly series multiply them further), cleaning up availability is tedious.

Proposed behaviour

In the list view of Current Slots:

  • A checkbox per slot row, only for slots that are not booked (booked slots cannot be deleted today, and that rule stands)
  • A select-all checkbox in the table header
  • A Delete selected button that removes all checked slots in one submit, with a confirmation prompt

Constraints

  • Same nonce/capability protection as the existing single delete (manage_availability)
  • Each submitted id must be ownership-checked against the current instructor
  • Booked slots must be refused even if an id is forged into the request

Notes

The week view already exists on this page (List | Week toggle); this issue covers only multi-select removal in the list view.

## Problem On the **My Availability** admin page, instructors can only delete availability slots one at a time. Since a single window is stored as many lesson-length slots (and weekly series multiply them further), cleaning up availability is tedious. ## Proposed behaviour In the **list view** of Current Slots: - A checkbox per slot row, only for slots that are not booked (booked slots cannot be deleted today, and that rule stands) - A select-all checkbox in the table header - A **Delete selected** button that removes all checked slots in one submit, with a confirmation prompt ## Constraints - Same nonce/capability protection as the existing single delete (`manage_availability`) - Each submitted id must be ownership-checked against the current instructor - Booked slots must be refused even if an id is forged into the request ## Notes The week view already exists on this page (List | Week toggle); this issue covers only multi-select removal in the list view.
thatguygriff added the enhancement label 2026-07-06 01:24:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#57