gitlab-org--gitlab-foss/spec/features/issues
Fatih Acet b01a830afe Merge branch '24877-bulk-edit-only-keeps-common-labels-when-searching' into 'master'
Improve bulk assignment

This MR improves current implementation of Label dropdown when used for bulk assignment on issuable pages (/:namespace/:project/issues, /:namespace/:project/merge_requests)

Previously this dropdown relied on `<input>` tags to get its active items and also to calculate items with indeterminate state.

Relying on `<input>` tags is not enough when we want to set/get multiple states on a dropdown.

For this case we want to get/set:

- Marked items 
- Unmarked items that were initially marked
- Unmarked items that were initially indeterminate
- Items with indeterminate state.

This MR makes the Label dropdown to save its own state as `data` so it will be easy to get and set whatever state we want no matter if the dropdown is filtering which is the issue that I initially wanted to solve as you can see in the following gif.

**Before** 
![2016-12-07_11.44.48](/uploads/cb697161b8b39cdee72fdbb95a531100/2016-12-07_11.44.48.gif)

**After**
![2016-12-07_11.32.43](/uploads/338255a302de0dd1367474f33232d2a3/2016-12-07_11.32.43.gif)

As you can see in the first gif the `bug` label is removed from the selected issues but the `enhancement` label should set but the `critical` should be kept. This is fixed on the next gif.

Fixes #24877

See merge request !7765
2016-12-15 21:03:33 +00:00
..
award_emoji_spec.rb Disabled award emoji button when user is not logged in 2016-11-22 10:25:09 +00:00
award_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
bulk_assignment_labels_spec.rb Remove unwanted semicolon 2016-12-14 10:05:00 -05:00
create_issue_for_discussions_in_merge_request_spec.rb Feature: delegate all open discussions to Issue 2016-12-05 20:55:45 +01:00
filter_by_labels_spec.rb Small improvements thanks to Robert's feedback 2016-09-30 12:02:54 +02:00
filter_by_milestone_spec.rb fixes milestone dropdown not select issue 2016-11-01 13:29:47 +06:00
filter_issues_spec.rb Added empty state svg and set up blank conditional 2016-11-18 03:57:36 +00:00
form_spec.rb Updated wording in the specs 2016-07-21 08:52:37 +01:00
gfm_autocomplete_spec.rb Merge branch 'gfm-autocomplete-char-in-middle' into 'master' 2016-12-15 17:31:58 +00:00
issue_sidebar_spec.rb Include author in assignee dropdown search 2016-11-17 11:13:39 +00:00
move_spec.rb Add shorthand support to gitlab markdown references 2016-12-02 19:18:17 -02:00
new_branch_button_spec.rb Rephrase some system notes to be compatible with new system note style 2016-11-24 18:26:29 +08:00
note_polling_spec.rb
reset_filters_spec.rb Added issuable_filters_present to check for active filters before rendering the reset button 2016-10-07 14:25:20 +01:00
todo_spec.rb Fix title case to sentence case 2016-11-23 16:34:58 -07:00
update_issues_spec.rb fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
user_uses_slash_commands_spec.rb Add a /wip slash command 2016-10-03 09:36:21 +02:00