Offer the current exercise through an explicit API switch.
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Failing after 29s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 16s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Failing after 7m42s

The exercise list turns the live catalog on or off for the caller's edit rights. A distribution key reads that current selection and the changes since its last cursor.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-23 15:37:25 +01:00
1 parent 4ad62b6e38
commit b59b7eae16
13 files changed
+488 -5

No files matched your search

@@ -0,0 +1,18 @@
-- Auswahl, welche Übungen der aktuelle Abruf ausliefert. Frühere Lieferpakete schalten das nicht mit ein.
ALTER TABLE exercises
ADD COLUMN IF NOT EXISTS api_offered BOOLEAN NOT NULL DEFAULT FALSE;
CREATE INDEX IF NOT EXISTS idx_exercises_api_offered
ON exercises (id)
WHERE api_offered = TRUE;
CREATE TABLE IF NOT EXISTS distribution_catalog_snapshots (
id UUID PRIMARY KEY,
binding_id UUID NOT NULL REFERENCES distribution_bindings (id),
snapshot JSONB NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS idx_distribution_catalog_snapshots_binding
ON distribution_catalog_snapshots (binding_id, created_at DESC);