feat: soft delete for interests and roles

A super admin can delete an interest or a role. Deleted rows leave every
list, picker and filter, keep their names on existing leads, and keep
their names reserved. A role held by any user, and the protected roles,
cannot be deleted. Deletes are audited.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-02 02:08:28 +08:00
1 parent 0f83e9cc08
commit 0b201a51ca
25 files changed
+765 -9

No files matched your search

@@ -45,7 +45,7 @@ class AdminInterestControllerTest {
void everyHandlerIsAuthenticatedAndGuardedByBoInterests() {
List<Method> handlers = Arrays.stream(AdminInterestController.class.getDeclaredMethods())
.filter(m -> Modifier.isPublic(m.getModifiers()) && !m.isSynthetic()).toList();
assertThat(handlers).hasSize(3);
assertThat(handlers).hasSize(4);
for (Method m : handlers) {
assertThat(m.isAnnotationPresent(AppAuth.class)).as(m.getName() + " @AppAuth").isTrue();
assertThat(Arrays.asList(m.getAnnotation(AdminModule.class).value())).as(m.getName()).containsExactly("BO_INTERESTS");