Bulk edit only keeps common labels when searching
Steps to reproduce:
- Have some issues with a common label, but other, different labels.
- Select those issues.
- Remove a label from the dropdown, then search to find a label to add.
- Click the update button.
Expected behaviour: only the labels I've explicitly removed are removed, and only the labels I've explicitly added are added.
Actual behaviour: it seems to send a request to add the common labels, and remove all others. This is really really really annoying.
Here's a request body I sent that removed labels earlier on GitLab.com:
update[issuable_ids]:3560333,3460311,3368055,3331643,3299756,3268583,3289109,3227810,3168687,3136499,2895592,2732397
update[add_label_ids][]:992791
update[remove_label_ids][]:19173
update[remove_label_ids][]:307491
update[remove_label_ids][]:506179
update[remove_label_ids][]:480950
update[remove_label_ids][]:168008
update[remove_label_ids][]:131895
update[remove_label_ids][]:14106
update[remove_label_ids][]:159544
update[remove_label_ids][]:874211
update[remove_label_ids][]:26362
update[remove_label_ids][]:301096
update[remove_label_ids][]:14206
update[remove_label_ids][]:12980
update[remove_label_ids][]:127616
update[remove_label_ids][]:122770
update[remove_label_ids][]:14213
update[remove_label_ids][]:14281
Here's a gif:
Here's the request body for that gif:
update[issuable_ids]:64,66,62
update[add_label_ids][]:1
update[remove_label_ids][]:2
update[remove_label_ids][]:10
update[remove_label_ids][]:8
update[remove_label_ids][]:20