Skip to content

dashboard: Fix reindexing of published realms#5041

Open
backspace wants to merge 2 commits into
mainfrom
dashboard-reindex-published-cs-11307
Open

dashboard: Fix reindexing of published realms#5041
backspace wants to merge 2 commits into
mainfrom
dashboard-reindex-published-cs-11307

Conversation

@backspace
Copy link
Copy Markdown
Contributor

@backspace backspace commented May 29, 2026

CleanShot 2026-05-29 at 12 49 44

The redacted URL is a published realm, which doesn’t live under the realm server domain.

With this branch deployed, reindexing succeeded:

CleanShot 2026-05-29 at 14 49 24@2x

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

Host Test Results

    1 files      1 suites   1h 36m 11s ⏱️
2 842 tests 2 827 ✅ 15 💤 0 ❌
2 861 runs  2 846 ✅ 15 💤 0 ❌

Results for commit a2d0d5f.

Realm Server Test Results

    1 files  ±0      1 suites  ±0   11m 49s ⏱️ +25s
1 516 tests ±0  1 515 ✅ ±0  1 💤 ±0  0 ❌ ±0 
1 607 runs  ±0  1 606 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit a2d0d5f. ± Comparison against earlier commit e4fcad3.

backspace and others added 2 commits May 29, 2026 14:53
The grafana reindex handler rejected any realm= value whose origin
differed from the server's own URL. Published realms legitimately live
on a different domain than the server that hosts them, so reindexing
one from the internal dashboard failed with "realm must be a path under
this server".

Drop the origin/pathname guard and rely on reconciler.lookupOrMount,
which already gates on registry membership (a parameterized WHERE url
lookup that never fetches the input URL). Any hosted realm — source or
published, on any domain — is now reindexable, while off-registry
values still fall through to the existing "does not exist" 400 and the
endpoint stays behind grafana authorization.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@backspace backspace force-pushed the dashboard-reindex-published-cs-11307 branch from e4fcad3 to a2d0d5f Compare May 29, 2026 20:03
@backspace backspace marked this pull request as ready for review May 29, 2026 20:09
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