Show which exercises differ from their last published release.
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Failing after 30s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 17s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Failing after 7m42s

The release tab names the changed areas, and an admin list collects those exercises so a new release stays a deliberate publication.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-23 14:56:15 +01:00
1 parent 4b33b17b2d
commit 4ad62b6e38
14 files changed
+305 -6

No files matched your search

@@ -29,6 +29,7 @@ from distribution_contract import (
official_write_allowed,
plan_available,
rate_decision,
changed_areas,
release_denial,
retrievable_release_ids,
sha256_bytes,
@@ -281,6 +282,35 @@ def test_release_screen_keeps_the_application_key() -> None:
assert [item["label"] for item in keys] == ["Lara"]
def test_changed_areas_names_the_edited_instruction() -> None:
exercise = {
"title": "Stand",
"summary": "",
"goal": "Sehen",
"execution": "Neuer Weg",
"preparation": "",
"trainer_notes": "",
"equipment": None,
"duration_min": None,
"duration_max": None,
}
manifest = {
"exercise": {
"title": "Stand",
"summary": None,
"parts": [
{"role": "goal", "text": "Sehen"},
{"role": "instructions", "text": "Alter Weg"},
],
"variants": [{"id": "v", "label": "Standard"}],
"assets": [],
}
}
assert changed_areas(exercise, [], [], manifest) == ["Durchführung"]
exercise["execution"] = "Alter Weg"
assert changed_areas(exercise, [], [], manifest) == []
def test_channel_sequence_is_locked() -> None:
assert "FOR UPDATE" in inspect.getsource(_lock_recipient)