Add feature to filter issues by multiple labels
Created by: tudorpavel
The idea of this feature is to have the possibility of filtering issues by more than one label. Only issues which contain all the selected labels should be displayed.
Feature Request: http://feedback.gitlab.com/forums/176466-general/suggestions/4036826-multiple-label-selection
User Interface
The implementation consists of a modified UI for a project's issues page:
- labels dropdown filter removed
- all project's labels displayed in left sidebar
- selected labels are highlighted as shown
Implementation
- selected labels are added to
params[:label_name]
and separated by commas - because of the way acts-as-taggable-on's
#tagged_with
method works by default, no other backend modification is required - normal links add the label to the filter
- highlighted links remove the label from the filter
Testing
A Spinach feature was written to test the functionality.