Commit graph

11 commits

Author SHA1 Message Date
Jan Provaznik
07a227a320 Allow to find labels in ancestor groups and better group support in label service 2018-02-26 16:23:19 +00:00
Felipe Artur
5e148d4e93 EE-BACKPORT group boards 2018-01-04 17:28:10 -02:00
blackst0ne
27c95364b5 Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
Robert Speicher
72a7b30c9f Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
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