Skip to content

Add records.json pointers to data.nemar.org index pages - #722

Merged
neuromechanist merged 1 commit into
devfrom
feat/records-json-index-links
Jun 8, 2026
Merged

neuromechanist merged 1 commit into
devfrom
feat/records-json-index-links

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

records.json now exists per published version (epic #615 backfill), so surface it next to manifest.json in the data-plane HTML index:

  • Dataset landing (/<id>/): each version row's files column gets a records.json link, and the Latest shortcut gets latest records.json.
  • Per-version page (/<id>/<version>/): the footer gets records.json next to manifest.json.

Tests: updated the 4 rclone-parser-compat expectations (records.json is a relative footer href, seen as a real artifact like manifest.json). 142 data-route tests pass; backend tsc clean.

Note: backfill covered latest versions; the ~10 non-latest versions are being dispatched separately so no link 404s.

Surface records.json next to manifest.json in the data-plane HTML index:
- dataset landing version table (files column) + the 'latest' shortcut
- per-version directory footer
Mirrors the manifest.json links (epic #615). Updated the rclone-compat tests:
records.json is a relative footer href so rclone sees it as a real artifact,
same as manifest.json.
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR722

Version: 0.8.49-PR722.5294723
Commit: 5294723


🤖 Updated on each push.

@neuromechanist

Copy link
Copy Markdown
Contributor Author

Review (Sonnet, code-reviewer): no blocking issues — safe to merge.

  • XSS/injection: the new records.json hrefs are built identically to the existing manifest.json ones (encodeURIComponent on id/version; relative literal in the footer). No new surface.
  • URL shape: correct — buildLandingPayload normalizes version rows to the v-prefixed tag, so tagHref satisfies VERSION_TAG_RE; the latest shortcut passes the literal latest, which resolveVersion handles.
  • Test updates: the 4 rclone-compat expectations correctly add records.json (a relative footer href the parser sees as a real artifact, like manifest.json).
  • Minor (non-blocking, already handled): links surface for every version even if records.json lags a fresh publish (handler returns no-store 404 by design). All current published versions were backfilled (latest + 10 non-latest), so nothing 404s today.

CI: required checks (lint, unit-pure) green. integration-dev red = the documented GitHub secondary-rate-limit transient on /auth/check-github from the ~230 records-backfill dispatches (see bulk_approval_rate_limit), not a regression — this change is HTML-only.

@neuromechanist
neuromechanist merged commit 62c1aae into dev Jun 8, 2026
8 of 10 checks passed
@neuromechanist
neuromechanist deleted the feat/records-json-index-links branch June 8, 2026 04:28

This branch was previously deployed

1 inactive deployment
npm — 52947232 Deployed Jun 8, 2026 by neuromechanist via publish #1345
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