Skip to content

Filter the HTML root listing for ready versions#157

Merged
passcod merged 1 commit into
mainfrom
version-known-issue-ranges-html-fix
May 21, 2026
Merged

Filter the HTML root listing for ready versions#157
passcod merged 1 commit into
mainfrom
version-known-issue-ranges-html-fix

Conversation

@passcod
Copy link
Copy Markdown
Member

@passcod passcod commented May 21, 2026

Summary

Follow-up to #156. The public-site root (e.g. https://meta.tamanu.app/) renders its own version listing via the Tera `versions` template — separate code path from the JSON `/versions` endpoint and the per-version detail pages. That path never got the ready filter, so:

  • the root page listed every published version, including known-broken ones (2.52.6+ in the reported case)
  • clicking through to a non-ready version's detail page 404'd, because `view_artifacts` resolves the range via `latest_matching_ready`, which correctly skips affected versions

This commit applies the same `affected_versions` filter to the index handler. Now the listing and the detail pages agree.

🤖 Generated with Claude Code

The root index template renders its own version listing, separate from
the JSON /versions endpoint. It was still loading every published
version, so the admin UI showed all 2.52.x even though their detail
pages 404 via latest_matching_ready.
@passcod passcod added this pull request to the merge queue May 21, 2026
Merged via the queue into main with commit 8d95165 May 21, 2026
3 checks passed
@passcod passcod deleted the version-known-issue-ranges-html-fix branch May 21, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant