Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Regenerate inventories for the Storage work

Juan Denisd3baa27b728f
diff --git a/backend/tests/test_history_retention.py b/backend/tests/test_history_retention.py
index fdb76a6c..f8be0816 100644
--- a/backend/tests/test_history_retention.py
+++ b/backend/tests/test_history_retention.py
@@ -22,15 +22,8 @@ def _count(table, where='1=1', **params):
def _app_id(name):
- user_id = _sql('SELECT id FROM users ORDER BY id LIMIT 1').scalar()
- if user_id is None:
- _sql("INSERT INTO users (email, username) VALUES ('[email protected]', 'retention')")
- user_id = _sql('SELECT id FROM users ORDER BY id LIMIT 1').scalar()
- from app.models import Application
- application = Application(name=name, app_type='docker', user_id=user_id)
- db.session.add(application)
- db.session.commit()
- return application.id
+ from tests.factories import make_application
+ return make_application(db, name=name).id
def test_every_spec_runs_against_the_real_schema(app):
diff --git a/docs/API_SURFACE.md b/docs/API_SURFACE.md
index 6a428936..54a7a512 100644
--- a/docs/API_SURFACE.md
+++ b/docs/API_SURFACE.md
@@ -673,6 +673,7 @@ Regenerate (backend/):
- `GET /system/processes`
- `GET /system/resource-tier`
- `GET /system/services`
+- `GET /system/storage`
- `GET /system/time`
- `GET /system/timezones`
- `GET /system/update`
diff --git a/docs/MIGRATION_INVENTORY.md b/docs/MIGRATION_INVENTORY.md
index c8561093..6ae82ded 100644
--- a/docs/MIGRATION_INVENTORY.md
+++ b/docs/MIGRATION_INVENTORY.md
@@ -21,7 +21,7 @@ debt. Regenerate with `python scripts/generate-migration-inventory.py`.
| Controller-boundary violations (routes doing service work) | service layer extraction | 495 | 495 | migrate when touched (first-wave ratchet) |
| raw api.* calls in pages/ | E1: useServerQuery/useServerMutation | 398 | 398 | migrate when touched |
| per-page toast.error extractions in pages/ | E1: query-layer error presentation | 206 | 206 | migrate when touched |
-| hand-rolled form-group blocks | F2: FormField/useForm | 316 | 321 | migrate when touched |
+| hand-rolled form-group blocks | F2: FormField/useForm | 317 | 321 | migrate when touched |
| unencoded ?k=${v} query interpolations in services/api | C4: buildQuery/encoding template | 0 | 0 | INVARIANT at 0 |
| raw setInterval pollers | E2: usePolling/refetchInterval | 7 | 7 | DELIBERATE RESIDUE: clock ticks, socket-fallback hooks, and sibling-repo extension timers - each listed per file |
| direct navigator.clipboard call sites | F3: copyToClipboard | 0 | 0 | INVARIANT at 0 |