Commit Graph

7 Commits

Author SHA1 Message Date
Horacio Bertorello 3900b2f378 Hide archived project labels from group issue tracker 2017-06-30 16:22:00 -03:00
Nick Thomas 9abcb71c9e Rename a label to fix an intermittently-failing spec 2016-12-01 00:03:39 +00:00
Robert Speicher c44474150c Limit labels returned for a specific project as an administrator
Prior, an administrator viewing a project's Labels page would see _all_
labels from every project they had access to, rather than only the
labels of that specific project (if any).

This was not an information disclosure, as admins have access to
everything, but it was a performance issue.
2016-11-16 15:04:51 +02:00
Stan Hu 02f835c105 Improve readability and add specs for label filtering 2016-10-24 23:06:14 -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 1644276bac Add tests to LabelsFinder 2016-10-19 14:58:25 -02:00