Repository navigation
[2.1] Fixes #38346: check derived FQN across all entity tables before moving tags - #38513
Merged
Merged
Conversation
…g tags (#38383) * fix(migration): check derived FQN across all entity tables before moving tags * Address review: extract helpers, register fixtures for cleanup - Extract the two collision LOG.warn blocks in ContextFileFqnRepair.repair into a logCollisions helper so the method stays short and does one thing. - Extract fixture setup (createGlossary, createGlossaryTerm, glossaryTermNamedLikeTheFile) and shared after-repair assertions (assertTagsStayUnderTheirOwner) so each new test stays short. - Register the new Context Center files with TestNamespace and add an @AfterEach that deletes the folders the new tests create (folders are not in TestNamespaceExtension's cleanup map), so runs leave no fixtures behind. --------- Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com> Co-authored-by: Ram Narayan Balaji <[email protected]> (cherry picked from commit 585284f)
gh-bot-collate
Bot
requested review from
IceS2
and removed request for
a team
November 23, 2026 15:52
Author
|
🤖 This backport will not merge itself: |
6 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #38383 to
2.1.585284f8c3f3b58851237baf9942e6365875ac8cmain.Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #38383 is asked to look.
resolver run


Confidence Score: 5/5
The PR appears safe to merge.Summary
The repair now checks whether another entity holds either the stored or derived fully qualified name before moving tags.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[File needs repair] --> B{Another context file holds derived name?} B -->|Yes| C[Leave file unchanged and retry later] B -->|No| D[Check both names across entity tables] D --> E{Either name shared or lookup failed?} E -->|Yes| F[Repair file name; leave tags; log details] E -->|No| G[Repair file name and move tags]Reviews (1) · Last reviewed commit: "Fixes #38346: check derived FQN across a..." · Reviewed by Greptile