-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(legacy) Object API registration: json_summary contains "duplicate" nodes #5035
Labels
needs-backport
Fix must be backported to stable release branch
Milestone
Comments
sergei-maertens
added a commit
that referenced
this issue
Jan 27, 2025
…cords Components nested in repeating groups are not real variables. The frontend code showed these in the variables table AND this also caused them to be PUT to the backend, resulting in crashes when processing file uploads because there are no saved submission variables available for them. Unfortunately, this doesn't appear to fix the problem with too much keys being included in the submission data during registration, so it must have a different root cause.
10 tasks
sergei-maertens
added a commit
that referenced
this issue
Jan 27, 2025
…ep configuration The total configuration wrapper merges the configuration wrapper of each step into a single object for optimized access to values/ components. It takes the first step and merges the remaining steps into it. However, this had the unintended side-effect of mutating the config of the first step, manifesting in the objects API v1 registration with the json_summary tag which contained extra, unexpected keys in the submission data of the first step. Fixed by making a deep copy first to end up with a different instance that can be safely mutated.
sergei-maertens
added a commit
that referenced
this issue
Jan 28, 2025
…cords Components nested in repeating groups are not real variables. The frontend code showed these in the variables table AND this also caused them to be PUT to the backend, resulting in crashes when processing file uploads because there are no saved submission variables available for them. Unfortunately, this doesn't appear to fix the problem with too much keys being included in the submission data during registration, so it must have a different root cause.
sergei-maertens
added a commit
that referenced
this issue
Jan 28, 2025
…ep configuration The total configuration wrapper merges the configuration wrapper of each step into a single object for optimized access to values/ components. It takes the first step and merges the remaining steps into it. However, this had the unintended side-effect of mutating the config of the first step, manifesting in the objects API v1 registration with the json_summary tag which contained extra, unexpected keys in the submission data of the first step. Fixed by making a deep copy first to end up with a different instance that can be safely mutated.
sergei-maertens
added a commit
that referenced
this issue
Jan 28, 2025
Fix 1: Components nested in repeating groups are not real variables. The frontend code showed these in the variables table AND this also caused them to be PUT to the backend, resulting in crashes when processing file uploads because there are no saved submission variables available for them. Unfortunately, this doesn't appear to fix the problem with too much keys being included in the submission data during registration, so it must have a different root cause. Fix 2: Avoid the total configuration wrapper mutating the first step configuration The total configuration wrapper merges the configuration wrapper of each step into a single object for optimized access to values/ components. It takes the first step and merges the remaining steps into it. However, this had the unintended side-effect of mutating the config of the first step, manifesting in the objects API v1 registration with the json_summary tag which contained extra, unexpected keys in the submission data of the first step. Fixed by making a deep copy first to end up with a different instance that can be safely mutated. Backport-of: #5043
sergei-maertens
added a commit
that referenced
this issue
Jan 28, 2025
Fix 1: Components nested in repeating groups are not real variables. The frontend code showed these in the variables table AND this also caused them to be PUT to the backend, resulting in crashes when processing file uploads because there are no saved submission variables available for them. Unfortunately, this doesn't appear to fix the problem with too much keys being included in the submission data during registration, so it must have a different root cause. Fix 2: Avoid the total configuration wrapper mutating the first step configuration The total configuration wrapper merges the configuration wrapper of each step into a single object for optimized access to values/ components. It takes the first step and merges the remaining steps into it. However, this had the unintended side-effect of mutating the config of the first step, manifesting in the objects API v1 registration with the json_summary tag which contained extra, unexpected keys in the submission data of the first step. Fixed by making a deep copy first to end up with a different instance that can be safely mutated. Backport-of: #5043
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Product versie / Product version
3.0.1
Customer reference
DH
Omschrijf het probleem / Describe the bug
The object API v1 json_summary seem to include the entire form in the first "step" with no values. But also includes each step with the data entered into the submission:
example:
Stappen om te reproduceren / Steps to reproduce
No response
Verwacht gedrag / Expected behavior
No response
Screen resolution
None
Device
None
OS
None
Browser
No response
The text was updated successfully, but these errors were encountered: