Feat# Implement self-approval prevention for workflow change requests#26289
Feat# Implement self-approval prevention for workflow change requests#26289
Conversation
...data/service/governance/workflows/elements/nodes/userTask/impl/SetApprovalAssigneesImpl.java
Show resolved
Hide resolved
# Conflicts: # openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/WorkflowDefinitionResourceIT.java
🔍 CI failure analysis for ca1c007: 1 test failure in McpToolsValidationIT caused by assertion expecting indexed data that wasn't found, likely due to ElasticSearch version conflicts during concurrent bulk operations; 1 infrastructure timeout in PostgreSQL+OpenSearch integration tests from partial shard unavailability.OverviewAnalysis of 6 error templates across 8 CI logs reveals 2 distinct failure patterns: 1 PR-related test assertion failure in the integration test suite, and 1 infrastructure-level timeout from an external search service. The new workflow self-approval feature implementation appears to have introduced a test data indexing issue in ElasticSearch concurrent operations. FailuresMcpToolsValidationIT Test Assertion Failure (confidence: high)
OpenSearch Partial Shard Unavailability Timeout (confidence: medium)
Summary
Code Review ✅ Approved 1 resolved / 1 findingsImplements self-approval prevention for workflow change requests to block users from approving their own changes. No issues found. ✅ 1 resolved✅ Edge Case: Self-approval prevention auto-approves when user is sole assignee
Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
|
🔴 Playwright Results — 1 failure(s), 30 flaky✅ 3306 passed · ❌ 1 failed · 🟡 30 flaky · ⏭️ 183 skipped
Genuine Failures (failed on all attempts)❌
|
|
Failed to cherry-pick changes to the 1.12.2 branch. |
…rkflow change requests (#26289)



Describe your changes:
Fixes https://github.com/open-metadata/openmetadata-collate/issues/2867
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
SetApprovalAssigneesImplto remove theupdatedByuser from approval assignees listupdatedByfrom global workflow namespace and excludes from task assigneestest_SelfApprovalPreventiontest case with three users, classification entity, and approval workflowThis will update automatically on new commits.