You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: restore dataContractLatest relationship on single-version delete (DQ-665)
When deleting only the latest contract version, the dataContractLatest
relationship edge was left in DELETED state because JanusGraph doesn't
restore previously-replaced edges. This caused the UI to show "something
went wrong" on the asset's contract tab.
Fix: restoreAssetContractPointers() uses entityStore.createOrUpdate() to
re-establish the dataContractLatest (and dataContractLatestCertified if
VERIFIED) relationship edges pointing to the previous version.
Also adds __state=ACTIVE filter to getSecondLatestVersion ES query to
avoid matching soft-deleted contracts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/contract/ContractPreProcessor.java
0 commit comments