fix(DesignerV2): Fixed issue with dd fallback on initial load#8943
fix(DesignerV2): Fixed issue with dd fallback on initial load#8943
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a regression where dynamic data fallback logic wasn’t triggered on initial load, causing original dynamic values to be lost on save while dynamic inputs were still unavailable.
Changes:
- Expand fallback condition to also trigger when a node indicates dynamic inputs are expected (not just when a DynamicInputs error exists).
- Add a unit test covering the “dynamic inputs not yet available” scenario to ensure original inputs are preserved.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| libs/designer-v2/src/lib/core/actions/bjsworkflow/serializer.ts | Updates fallback merge condition to preserve original inputs when dynamic inputs aren’t available yet. |
| libs/designer-v2/src/lib/core/actions/bjsworkflow/test/serializeOperationDynamicMerge.spec.ts | Adds a test asserting original dynamic values are preserved during initial dynamic-load states. |
libs/designer-v2/src/lib/core/actions/bjsworkflow/serializer.ts
Outdated
Show resolved
Hide resolved
...designer-v2/src/lib/core/actions/bjsworkflow/__test__/serializeOperationDynamicMerge.spec.ts
Show resolved
Hide resolved
...designer-v2/src/lib/core/actions/bjsworkflow/__test__/serializeOperationDynamicMerge.spec.ts
Show resolved
Hide resolved
...designer-v2/src/lib/core/actions/bjsworkflow/__test__/serializeOperationDynamicMerge.spec.ts
Show resolved
Hide resolved
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:
|
| Section | Status | Recommendation |
|---|---|---|
| Title | Make title explicit (avoid "dd") and use present-tense and consistent scope casing | |
| Commit Type | ✅ | None |
| Risk Level | Change to risk:medium in body and label (see rationale) |
|
| What & Why | ✅ | Expand to list key implementation changes briefly |
| Impact of Change | Update Developers/System fields to reflect state/action changes | |
| Test Plan | ✅ | Consider E2E or explain why not required |
| Contributors | Add additional contributors if applicable | |
| Screenshots/Videos | ✅ | None needed |
Final Message
Please update the PR as recommended above. Key actionable items:
- Update the PR title to be explicit (e.g.,
fix(designer-v2): preserve dynamic data fallback on initial load). - Consider updating the Risk Level in the PR body and label to
Mediumto reflect cross-cutting behavioral changes (state & serialization). If you disagree with Medium, add notes in the PR explaining why Low is appropriate (e.g., extremely isolated change with low surface area and full test coverage). - Expand the "What & Why" to briefly list the files/behaviors changed so reviewers understand the approach without scanning the diff.
- Update the Impact section to list Developer/System impacts (new action, state transitions, serialization behavior).
- If there are integration or E2E scenarios that should be validated (save/serialize flows across dynamic inputs), either add tests or describe manual test scope clearly.
Thanks — overall the PR body is largely complete and unit tests were added. I recommend the label be bumped to risk:medium and the title clarified before merging.
Last updated: Thu, 19 Mar 2026 20:34:23 GMT
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
Commit Type
Risk Level
What & Why
Iteration on this feature: #8918
Our fallback logic was not getting triggered on initial load of dynamic data.
This fixes that issue.
Impact of Change
Test Plan
Contributors
@rllyy97
Screenshots/Videos
N/A