Repository navigation
Fixes #36556: Record the asset's change event when an approved task changes it (backport 2.0 #36682) - #36694
Merged
Conversation
manerow
marked this pull request as ready for review
October 30, 2026 11:47
Code Review ✅ Approved🟡 Medium risk · Centralizing approved-task asset writes in saveChange changes persistence and event recording; a faulty diff could apply unintended metadata or emit misleading audit events. Records the asset's change event when an approved task modifies it (description, column description, owners, domains, or AI suggestion), routing all such writes through a single VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
yan-3005
approved these changes
Nov 2, 2026
This branch was previously deployed
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.
Issue
Fixes #36556
Port of PR #36682 to the 2.0 release branch. The change to
TaskWorkflowHandlerandFieldPathUtilsis the same as on main; only the types differ, becauseEntityInterfaceis not generic on 2.0. The tests were adapted to the smaller 2.0 test files. PR #36682 explains the problem.What changes
saveChange, that saves the change and records its event.FieldPathUtilsno longer writes to the database; the removedupdateFieldDescriptionhad no other callers in OpenMetadata or Collate 2.0.How it was tested on 2.0
TaskWorkflowHandlerTest(three new cases forsaveChange),FieldPathUtilsTest,EntityFieldUtilsTest(58 tests, all pass).TaskResourceIT, which now assert exactly one change event on the asset by the approver, plusTaskChangeEventITandChangeSummaryResourceIT: 12, 6 and 15 cases, all pass.