fix(web): Run column shows run_id, the real global progressive

run.number only counts within its own repo/workflow -- meaningless once
the admin endpoint mixes every repo into one list, and already not what
the row order is sorted by. run_id is Gitea's actual instance-wide,
strictly-increasing id, so the displayed number now agrees with "most
recent globally". The link still goes to Gitea's own per-repo run page
(html_url); only the label text changed.
This commit is contained in:
2026-07-26 01:20:44 +02:00
parent 6b338a699a
commit 39abfcef80
3 changed files with 16 additions and 7 deletions
+5 -5
View File
@@ -213,7 +213,7 @@ def test_card_renders_run_row_with_its_vm(
resp = client.get("/executions")
assert resp.status_code == 200
assert "#12" in resp.text
assert "#412" in resp.text
assert "build-ns7zip.yml" in resp.text
assert "simone/local-ci-cd-system" in resp.text
assert "a1b2c3d" in resp.text # commit shortened to 7 chars
@@ -238,7 +238,7 @@ def test_attempt_shown_only_when_greater_than_one(
resp = client.get("/executions")
assert "#12.2" in resp.text
assert "#412.2" in resp.text
@pytest.mark.parametrize(
@@ -480,7 +480,7 @@ def test_end_to_end_against_a_stubbed_gitea(
resp = client.get("/executions")
assert resp.status_code == 200
assert "#12" in resp.text
assert "#412" in resp.text
assert "build-ns7zip.yml" in resp.text
# The clone is attached to its run, so it is not listed as "no run".
assert "no run" not in resp.text
@@ -852,7 +852,7 @@ def test_scope_refused_login_token_falls_back_to_the_pat(
resp = client.get("/executions")
assert seen == ["scope-less", _FAKE_PAT]
assert "#12" in resp.text
assert "#412" in resp.text
def test_no_pat_fallback_when_none_configured(
@@ -944,7 +944,7 @@ def test_401_triggers_one_refresh_then_retries(
assert seen == ["stale", "fresh"]
assert len(stub.refresh_calls) == 1
assert "#12" in resp.text
assert "#412" in resp.text
assert gitea_token_for(app, "Simone") is not None