Skip to content

dashboard: Fix reindexing of published realms#5041

Merged
backspace merged 2 commits into
mainfrom
dashboard-reindex-published-cs-11307
Jun 1, 2026
Merged

dashboard: Fix reindexing of published realms#5041
backspace merged 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
@backspace backspace requested a review from a team June 1, 2026 13:43
Copy link
Copy Markdown
Contributor

@habdelra habdelra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think just a lint problem

@backspace backspace merged commit c3034dc into main Jun 1, 2026
72 of 74 checks passed
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.

2 participants