Skip to content

Conversation

@create-issue-branch
Copy link
Contributor

closes #645

@cla-bot cla-bot bot added the cla-signed label Jan 12, 2026
This commit adds the 'deleted' column on the SchoolClass record and DB
migration, as well as two scopes called `active` and `deleted` to
simplify retrieval of active and deleted classes respectively.
This commit changes the access rules in CanCanCan to prevent any user
(student, teacher or owner) from accessing deleted classes.
This means the #index operation only returns classes within the `active`
scope, excluding deleted classes.
Instead of calling `destroy!` on SchoolClass, we now call
`mark_as_deleted!` instead.
This commit adds broader tests for the behaviour of marked-as-deleted
classes.
@fspeirs
Copy link
Contributor

fspeirs commented Jan 15, 2026

We are no longer implementing soft-delete of SchoolClass in the first iteration of this feature, so I'm closing this PR. The current behaviour on main is sufficient and RaspberryPiFoundation/editor-standalone#708 will implement the necessary changes on the front-end.

@fspeirs fspeirs closed this Jan 15, 2026
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.

Implement back-end features for "Remove a Classroom"

2 participants