This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
Translation Epic TS3 - Prevent Accidental Reassignment in Request Payloads #329
Labels
bug
Something isn't working
Milestone
Desired Use Case
Unpacking nested payloads should not be a side effect for
buildRequestPayload()
. It should be separated into its own method for clarity.Actual/Current Behavior
The current method can accidentally overwrite objects with nested values:
becomes
Steps to Implement This Feature
buildNestedRequestPayload()
.buildNestedRequestPayload()
when unpackingdynamicContent
.buildNestedRequestPayload()
when mapping from nested property to parent object (e.g. getting form values for role and agency from select fields).LanguageStateService
.Pre-Testing TODOs
What needs to be done before testing.
Testing Steps
If you are not a member of this project, skip this step
How do the users test this change?
The text was updated successfully, but these errors were encountered: