refactor(controlplane): move the store-backed server out of internal/app
This commit is contained in:
59 files changed
+154
-154
No files matched your search
@@ -6,11 +6,11 @@ import { parseGoDuration } from "../components/ui/duration-input/duration.ts";
|
||||
* The server validates every replace, so this is not the only line of
|
||||
* defence: it exists so Save can be refused before the round-trip and the
|
||||
* operator sees the reason beside the field. The rules mirror the server's
|
||||
* (internal/app/controlplane), and the same map is read by the store, the
|
||||
* (internal/infrastructure/controlplanestore), and the same map is read by the store, the
|
||||
* save bar and the pages' inline messages, so a rule is written once.
|
||||
*
|
||||
* A hand-written mirror drifts, which is why every rule here is pinned to the
|
||||
* server's by internal/app/controlplane/testdata/dashboard-validators.json:
|
||||
* server's by internal/infrastructure/controlplanestore/testdata/dashboard-validators.json:
|
||||
* a Go test runs the server validators over that fixture and this file's
|
||||
* tests run these validators over the same cases, so changing one side alone
|
||||
* fails a test. Add a case to the fixture, not to one side only.
|
||||
|
||||
Reference in new issue
Block a user