(BE) User contribution mapping: skip membership creation
requested to merge 481718-be-allow-importing-user-to-choose-to-import-memberships-or-not-2 into master
What does this MR do and why?
This MR implements the ability to skip the importing of memberships during a direct transfer, depending on the value of the migrate_memberships property (which will be sent by the frontend in the process of triggering a bulk import). The frontend issue (and documentation update) is addressed seperately.
The MR:
- Update API endpoint to accept a new optional argument called
migrate_memberships
. - Include the param in the API documentation for bulk_imports.
- Updates
BulkImports::CreateService
to accept the new argument - Ensures that membership creation is skipped in the project and group stage files when
migrate_memberships
is false.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
N/A
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #481718 (closed)
Edited by Oiza Baiye