Stan Hu
ce256c28f2
Improve label filtering implementation
2016-10-24 22:40:09 -07:00
Stan Hu
af4d16d9b8
Allow the use of params[:name] when filtering labels
2016-10-24 22:40:09 -07:00
Stan Hu
ddafea060d
Fix bug where labels would be assigned to issues that were moved
...
If you attempt to move an issue from one project to another and leave
labels blank, LabelsFinder would assign all labels in the new project
to that issue. The issue is that :title is passed along to the Finder,
but since it appears empty no filtering is done. As a result, all
labels in the group are returned. This fix handles that case.
Closes #23668
2016-10-24 22:40:08 -07:00
Douglas Barbosa Alexandre
e6957a6b47
Remove order by label type on LabelsFinder
2016-10-19 14:58:28 -02:00
Douglas Barbosa Alexandre
a9938e227b
Add support to group labels to SlashCommands::InterpretService
2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre
d3b76e832f
Reuse LabelsFinder on Banzai::Filter::LabelReferenceFilter
2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre
1e5ea6e7e0
Return only labels that user have access on IssuableFinder#labels
2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre
da9407927b
Remove unnecessary `title.present?` on LabelsFinder
2016-10-19 14:58:26 -02:00
Douglas Barbosa Alexandre
3db2261005
Reuse LabelsFinder on Banzai::Filter::LabelReferenceFilter
2016-10-19 14:58:25 -02:00
Douglas Barbosa Alexandre
e2dd75c0a2
Makes the query to retrieve group labels more simpler
2016-10-19 14:58:24 -02:00
Douglas Barbosa Alexandre
b10e5764ac
List only labels that belongs to the group on the group issues page
2016-10-19 14:58:24 -02:00
Douglas Barbosa Alexandre
cf14482a5a
LabelsFinder inherits from UnionFinder
2016-10-19 14:58:24 -02:00
Douglas Barbosa Alexandre
d5a595b597
Add LabelsFinder
2016-10-19 14:57:15 -02:00