Commit graph

20 commits

Author SHA1 Message Date
Imre Farkas
9bc5ed14fe Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
Andreas Brandl
46b1b9c1d6 Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"
This reverts merge request !26823
2019-04-05 13:02:56 +00:00
Imre Farkas
d9d7237d2e Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-05 11:45:47 +00:00
Sean McGivern
eba5672077 Allow filtering labels by a single character
When we use Gitlab::SQL::Pattern, this typically relates to a trigram
index. As the 'tri' indicates, we need at least three characters to be
able to use that index.

Labels don't have a trigram index, because we never allow you to search
for them globally: it's always in the context of a project or a
group. In that context, it's just as fast to search for a single
character (in general) because there is already a pretty specific index
being used.
2019-03-13 10:54:43 +00:00
Dmitriy Zaporozhets
600a10b9d1 Add subscribe filter to labels page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-10-04 10:24:50 +02:00
James Ramsay
79d90cb6bd Use Projects::UpdateService to archive projects
System hooks were not being triggered when projects were archived or
unarchived. Reuse the Projects::UpdateService to automatically
trigger system hooks and increase code reuse.
2018-08-03 11:55:21 -04:00
Dmitriy Zaporozhets
4996876e37 Add specs for label search backend code
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-07-31 12:46:37 +03:00
Felipe Artur
ad7148d9ea Allow assigning and filtering issuables by ancestor group labels 2018-04-04 15:40:29 +00:00
Jan Provaznik
1f4ee653fa Allow to include also descendant group labels
Because epic index page includes also epics from subgroups
it's necessary to also get descendant group labels for filtering.
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4773#note_61236542
2018-03-02 11:44:18 +01:00
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