From 2a0b8fcab262c3111884fe09763c862a33bda97b Mon Sep 17 00:00:00 2001 From: Ian Roddis <31021769+iroddis@users.noreply.github.com> Date: Wed, 5 Aug 2026 14:19:25 -0300 Subject: [PATCH] Fixing errors and danger zone --- app/services/danger_zone.py | 3 --- app/templates/admin/danger_zone.html | 12 ++++++------ tests/test_danger_zone.py | 9 +++++---- tests/test_scope_guide.py | 2 +- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/app/services/danger_zone.py b/app/services/danger_zone.py index 8309591..b44bf91 100644 --- a/app/services/danger_zone.py +++ b/app/services/danger_zone.py @@ -16,12 +16,9 @@ from app.models.fit import Fit, FitNote from app.models.imported_part import ImportedPart from app.models.iso_thread import IsoThread from app.models.manufacturer import Manufacturer -from app.models.part_colour import PartColour -from app.models.part_type import PartType from app.models.scope_info import ScopeInfo from app.models.scope_model import ScopeModel from app.models.static_connection import StaticConnection -from app.models.sub_part_type import SubPartType from app.models.unc_thread import UncThread # Children before the RESTRICT-protected reference tables they point to. diff --git a/app/templates/admin/danger_zone.html b/app/templates/admin/danger_zone.html index 7ed5d6d..30e2724 100644 --- a/app/templates/admin/danger_zone.html +++ b/app/templates/admin/danger_zone.html @@ -8,15 +8,15 @@
- Permanently deletes every part, taxonomy entry, attachment point, fit, - and imported part in the database — manufacturers, part colours, part - types, sub part types, scope models, ISO/UNC threads, clamp/static - connections, attachment point names, augmented parts, scope info, - attachment points, fits, fit notes, and imported parts. + Permanently deletes every part, attachment point, fit, and imported + part in the database — manufacturers, scope models, ISO/UNC threads, + clamp/static connections, attachment point names, augmented parts, + scope info, attachment points, fits, fit notes, and imported parts.
Not deleted: users, roles & permissions, refresh - tokens, the audit log, and the OData connection configuration. + tokens, the audit log, the OData connection configuration, and part + taxonomy (part colours, part types, sub part types).
This cannot be undone. Take a database backup first if you might need this data again.