AP1.12c: Reorder für Projekte und Backlog per sort_order.
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Migration 015 für Backlog sort_order; DnD auf Desktop, Pfeile auf Mobile; PATCH-Batches für Geschwister. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e50c04c96f
commit
a99d4a8974
15 files changed
+709
-130
No files matched your search
@@ -247,6 +247,29 @@ def test_backlog_crud(client):
|
||||
assert deleted.status_code == 204
|
||||
|
||||
|
||||
def test_backlog_sort_order(client):
|
||||
user = provision_user_in_tenant(tenant_role="member")
|
||||
token = _login(client, user)
|
||||
initiative_id = _create_initiative(client, token).json()["id"]
|
||||
first = _create_backlog(client, token, initiative_id, title="First").json()
|
||||
second = _create_backlog(client, token, initiative_id, title="Second").json()
|
||||
assert first["sort_order"] < second["sort_order"]
|
||||
|
||||
patched = client.patch(
|
||||
f"/api/backlog/{second['id']}",
|
||||
json={"sort_order": 0},
|
||||
headers=_auth(token),
|
||||
)
|
||||
assert patched.status_code == 200
|
||||
assert patched.json()["sort_order"] == 0
|
||||
|
||||
listed = client.get(
|
||||
f"/api/initiatives/{initiative_id}/backlog",
|
||||
headers=_auth(token),
|
||||
).json()
|
||||
assert [row["title"] for row in listed[:2]] == ["Second", "First"]
|
||||
|
||||
|
||||
def test_milestone_crud(client):
|
||||
user = provision_user_in_tenant(tenant_role="member")
|
||||
token = _login(client, user)
|
||||
|
||||
Reference in new issue
Block a user