Commit graph

14 commits

Author SHA1 Message Date
Michael Kozono
49697bc8df Refactor to more robust implementation
In order to avoid string manipulation or modify route params (to make them unambiguous for `url_for`), we are accepting a behavior change:

When being redirected to the canonical path for a group, if you requested a group show path starting with `/groups/…` then you’ll now be redirected to the group at root `/…`.
2017-05-19 09:13:27 -07:00
Dmitriy Zaporozhets
c6960ded8a
Refactor add_users method for project and group
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-04-21 18:38:10 +03:00
Douwe Maan
ad640bc5f9 Use Namespace#full_path instead of #path where appropriate 2017-02-23 17:55:01 -06:00
Ritave
5d871dccbe Abillity to promote project labels to group labels
Fixes #24021
2017-01-31 12:50:52 +01:00
Douglas Barbosa Alexandre
9dfbe1d2a1 Add helper method to toggle label subscription on labels controller spec 2016-11-17 15:10:13 -02:00
Douglas Barbosa Alexandre
4a29fde577 Allow users to subscribe to group labels at project-level 2016-11-17 15:10:13 -02:00
Adam Niedzielski
e2c603696a Pass user instance to Labels::FindOrCreateService or skip_authorization: true
Do not pass project.owner because it may return a group and Labels::FindOrCreateService
throws an error in this case.
Fixes #23694.
2016-10-28 11:31:45 +02:00
Rémy Coutable
e696896487
Fix status code expectation
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-22 13:46:23 +02:00
Stan Hu
0890aeb61a Fix error in generating labels
Attempting to generate default set of labels would result in
an error:

ArgumentError: wrong number of arguments (given 1, expected 0)

Closes #23649
2016-10-22 02:16:21 -07:00
Douglas Barbosa Alexandre
3c2aaec1f2 Fix sorting by label priorities 2016-10-19 14:58:27 -02:00
Douglas Barbosa Alexandre
0bfa39d5bd Remove scopes/types for labels 2016-10-19 14:58:25 -02:00
Douglas Barbosa Alexandre
baf47a0bd0 Remove project_labels from Projects::ApplicationController 2016-10-19 14:58:24 -02:00
Grzegorz Bizon
9e211091a8 Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
Sean McGivern
ee26c3cab4 Fix label order by priority on labels page 2016-06-07 14:01:30 +01:00