Fix FE bulk update sending empty array
What does this MR do and why?
This MR fixes the frontend from sending an empty array for assignee_ids to the bulk issues REST API, since we should ideally send undefined because an empty array can be interpreted as "remove all existing assignees". Discussion in: https://gitlab.slack.com/archives/C72HPNV97/p1675782539856769
Screenshots or screen recordings
How to set up and validate locally
- Visit a group issues page such as
http://127.0.0.1:3000/groups/h5bp/-/issues - Click
Edit issuesto start bulk editing - Select the checkbox of an issue that has an assignee
- In the sidebar, select any milestone
- Update the issue, then confirm it still has an assignee after page reload
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 Coung Ngo