fix(orchestrator): scope SchemaUpdater replacements#2725
Conversation
Limit SchemaUpdater replacements to the originating scope, with robust path resolution for nested and array schemas, plus tests covering scoping cases. Made-with: Cursor
Changed Packages
|
Review Summary by QodoScope SchemaUpdater replacements to originating step
WalkthroughsDescription• Scope SchemaUpdater replacements to originating step/object • Add scopeId parameter to track SchemaUpdater field location • Implement robust path resolution for nested and array schemas • Add comprehensive unit tests covering scoping scenarios Diagramflowchart LR
A["SchemaUpdater Widget"] -->|"passes scopeId"| B["updateSchema Function"]
B -->|"resolves scope path"| C["getScopePathFromId"]
C -->|"returns path"| D["getScopedProperties"]
D -->|"limits replacements"| E["deepSearchAndFirstReplace"]
E -->|"updates schema"| F["setSchema"]
File Changes1. workspaces/orchestrator/plugins/orchestrator-form-api/src/api.ts
|
Code Review by Qodo
1. Array index scope unsupported
|
|
|
/cherrypick orchestrator-1.9-backport |
|
@lokanandaprabhu: new pull request created: #2732 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |




Hey, I just made a Pull Request!
Fixes: https://redhat.atlassian.net/browse/RHDHBUGS-2920
Summary
-----BEFORE-----
Screen.Recording.2026-04-08.at.7.14.19.PM.mov
----AFTER-------
Screen.Recording.2026-04-08.at.7.19.57.PM.mov
Screen.Recording.2026-04-08.at.7.10.54.PM.mov
Workflow to test
Steps to reproduce
test-schema-updater-multi-stepworkflow.placeholderTwoupdates to “App Registration placeholderTwo (from updater)”.placeholderTwoupdates to “CaaS Namespace placeholderTwo (from updater)”.✔️ Checklist