Skip to content

Fix hierarchy showing different data for source versions vs HEAD#28

Open
paynejd wants to merge 1 commit intomasterfrom
fix/2149-hierarchy-version-mismatch
Open

Fix hierarchy showing different data for source versions vs HEAD#28
paynejd wants to merge 1 commit intomasterfrom
fix/2149-hierarchy-version-mismatch

Conversation

@paynejd
Copy link
Copy Markdown
Member

@paynejd paynejd commented Mar 27, 2026

Summary

  • Fixes hierarchy tree expansion always fetching children from HEAD instead of the viewed source version
  • Passes versioned baseURL from Search into ConceptHierarchyResultsTable and reconstructs children fetch URLs to include the source version
  • Falls back to existing behavior when no baseURL is provided

Closes OpenConceptLab/ocl_issues#2149

Test plan

  • View a source with hierarchy enabled at HEAD — hierarchy should work as before
  • Create a source version, then view its hierarchy — tree expansion should show the same hierarchy as HEAD (assuming no content changes)
  • Verify that expanding child nodes in a versioned source fetches from the versioned API endpoint (check network tab)

🤖 Generated with Claude Code

…iewing source version

Hierarchy tree expansion was always fetching children from HEAD because
it used item.url directly (which the API returns without version info).
Now constructs versioned URLs using the baseURL from the search context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

The first version's hierarchy different from the HEAD's

1 participant