Skip to content

Fix bulk batch export of badges and uploads

Max Fan requested to merge 421138-backport-badges-uploads-export into 16-4-stable-ee

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

This needs to be backported to at least 16.2 where batched migrations was first enabled: #421138 (comment 1595759370)

Exception Request: https://gitlab.com/gitlab-org/release/tasks/-/issues/6813

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

  • This MR is backporting a bug fix, documentation update, or spec fix, previously merged in the default branch.
  • The MR that fixed the bug on the default branch has been deployed to GitLab.com (not applicable for documentation or spec changes).
  • This MR has a severity label assigned (if applicable).
  • This MR has been approved by a maintainer (only one approval is required).
  • Ensure the e2e:package-and-test-ee job has either succeeded or been approved by a Software Engineer in Test.

Note to the merge request author and maintainer

If you have questions about the patch release process, please:

Edited by Max Fan

Merge request reports

Loading