GRI-1975: remove the campus seed, add campus CRUD #171
No reviewers
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage!171
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/GRI-1975-campus-crud"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up to grimoire-of-digital-signage#159 / #162, per comment 10964: the
AM/HE/JO/NO campuses were meant as a worked example in that PR's discussion,
not a permanent seed shipped to every install.
migrations/0005_campus.sql. A freshinstall now lists no campuses.
POST/PATCH/DELETE /api/v1/campuses(signed-inCurrentUseronly —there is no admin/role model merged yet, the same gap already noted for
list_campuses; true admin-only gating is tracked separately for#44/GRI-1970).409 duplicate_code.IP rule ->
409 campus_in_use(relies on the existing FK with noON DELETEaction).creates it. Added a test that a fresh database lists no campuses, plus a
create/list/rename/delete round trip and the two 409 cases.
campus_idtest fixture helper inplaylist_integration.rs,media_integration.rs,devices_integration.rsandpermission_scoping_acceptance_integration.rs— all previously assumed theseed — to create the campus they need instead.
Front-end campus management panel is out of scope here; it is a follow-up.
Test plan
./scripts/local-gates.sh --rust-only— every gate passed (hooks,fmt, clippy, cargo test --workspace --all-targets, cargo test --doc,
cargo deny).
409, delete-of-referenced-campus 409.