fix(api): support repeating groups in bulk submission updates#6644
Open
emaia wants to merge 1 commit intokobotoolbox:mainfrom
Open
fix(api): support repeating groups in bulk submission updates#6644emaia wants to merge 1 commit intokobotoolbox:mainfrom
emaia wants to merge 1 commit intokobotoolbox:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗒️ Checklist
#Support Docs Updates, if any<type>(<scope>)<!>: <title> DEV-1234Front endand/orBack endorworkflow📣 Summary
The PATCH /api/v2/assets/{asset_uuid}/data/bulk/ endpoint was returning 500 error when the payload contained repeating group fields (arrays). Modified edit_submission_xml() to handle list values by replacing existing repeat elements with new ones from the payload. Fix #6638
📖 Description
Modified edit_submission_xml() to handle list values by replacing existing repeat elements with new ones from the payload. Added helper functions _edit_repeat_group() and _extract_relative_path() to process nested repeat group structures recursively.
💭 Notes