Repository navigation
Preserve automation workflow inputs on update - #36076
Conversation
Triggers and runners read the saved execution inputs at separate times. Preserve those inputs across PUT and PATCH while allowing status and response updates.
Code Review ✅ Approved🔴 High risk · Making workflow request/type immutable changes credential and trigger-authorization behavior; mishandling updates could misroute stored secrets or permit unauthorized triggers. Preserves the saved request and workflow type when automation workflows are updated through PUT and PATCH, so trigger permissions and execution inputs stay intact. Status, response, and description updates still persist. No issues found. 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 |
|
Local Java test run: PASSED — details
Tests run locally
Per-class counts come from the test reports, which can credit a test to the wrong class when classes run concurrently, and keep only the last run of a nested class that several test classes inherit. The summary's step totals are Maven's own counts. integration · mysql-elasticsearch · parallel: 48 classes
Why these tests
Commandsmvn -B package -pl openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=WorkflowRepositoryUpdateTest,WorkflowResourceDecryptTest -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=parallel '-Dit.test=<47 classes>' -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=global-state -Dit.test=ChangeRequestAdmissionIT,ChangeRequestApplyIT,ChangeRequestDecisionIT,ChangeRequestImportAndBulkIT,ChangeRequestLifecycleIT,ChangeRequestResourceIT,DataContractValidationAppIT,WorkflowDefinitionResourceIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=rdf -Dit.test=RdfGovernanceRulesIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false |
Describe your changes:
Preserve the request and workflow type saved at creation when updating automation workflows. Status, response, and description updates continue to work through PUT and PATCH.
No public issue linked.
Type of change:
High-level design:
Not applicable — small repository update using the existing immutable-field pattern.
Tests:
Use cases covered
Unit tests
WorkflowRepositoryUpdateTest: 6 passed; regression cases verified failing before the change.WorkflowResourceDecryptTest: 1 passed.WorkflowRepository.WorkflowUpdater(8/8 lines).mvn spotless:applyandspotless:checkpassed; pre-commit checks passed.Backend integration tests
Updated
WorkflowTriggerPermissionsITwith six cases covering both update behaviors across all three API paths. All six cases were verified failing before the change.Local Java test run: PASSED
18f8ab82b6cd(baseorigin/main)Detailed local Java results
Ingestion integration tests
Not applicable — no ingestion code changes.
Playwright (UI) tests
Not applicable — no UI changes.
Manual testing performed
No separate manual run. Automated REST tests create a workflow, update it through each API path, fetch the saved entity, and check execution inputs, results, and trigger permissions.
UI screen recording:
Not applicable — backend-only fix.
Checklist:
CONTRIBUTING.md.REVIEW.md: fresh-context review of18f8ab82b6cd141ae40343e5726cfa5d63daa7a9; no findings.

Confidence Score: 5/5
The PR appears safe to merge.Summary
Updates preserve the saved
requestandworkflowTypewhile allowingstatus,response, anddescriptionchanges.No actionable issues found. Tests were not run during this review.
Reviews (1) · Last reviewed commit: "fix: preserve automation workflow inputs" · Reviewed by Greptile