Adding eachBatch so project exporter can iterate through records
What does this MR do and why?
Currently bulk_import exporting of badges and uploads is broken if param[:batched] is set to true
while exporting https://docs.gitlab.com/ee/api/group_relations_export.html#schedule-new-export
This fixes export of those relations
Relates to: #421138 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
|
|
How to set up and validate locally
- Trigger POST
http://172.16.123.1:3000/api/v4/groups/298/export_relations?batched=true
for a group you have locally - Trigger GET
http://172.16.123.1:3000/api/v4/groups/298/export_relations/status
- The above should return an error for badges
- Clone this branch & repeat steps 1 and 2
- Badges should successfully export like the screenshot above
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Max Fan