Commit graph

20 commits

Author SHA1 Message Date
GitLab Bot
2e4d8b3449 Add latest changes from gitlab-org/gitlab@master 2020-04-28 03:09:53 +00:00
GitLab Bot
f569792df8 Add latest changes from gitlab-org/gitlab@master 2020-04-27 18:09:41 +00:00
Robert Schilling
ad25e14844 Simplify label helper and correct version 2019-01-31 13:49:52 +01:00
Robert Schilling
0ce33f6b4f Factor out common label API 2019-01-31 13:49:52 +01:00
Robert Schilling
a9fdc3118a Incorporate feedback from Robert 2019-01-31 13:49:51 +01:00
Robert Schilling
27a19c515a Factor out group labels entity 2019-01-31 13:49:51 +01:00
Robert Schilling
6383a986de fix rebasing 2019-01-31 13:49:50 +01:00
Robert Schilling
82f09a91dd Incorporate feedback from Nick 2019-01-31 13:49:50 +01:00
Robert Schilling
eed79986c9 Add subscription API for the group label API 2019-01-31 13:49:49 +01:00
Imre Farkas
b1e070bf49
Fix API::Namespaces to accept namepaces with dots
It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to
API::NAMESPACE_OR_PROJECT_REQUIREMENTS
2018-11-28 12:54:11 +01:00
gfyoung
3836d69119 Enable frozen string in lib/api and lib/backup
Partially addresses #47424.

Had to make changes to spec files because
stubbing methods on frozen objects is a mess
in RSpec and leads to failures:

https://github.com/rspec/rspec-mocks/issues/1190
2018-09-29 21:04:50 -07:00
Robert Schilling
6a2ee0968e API: Use defined project requirements 2017-08-31 14:57:47 +02:00
Rémy Coutable
d40e1f547e Enable the Style/TrailingCommaInLiteral cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Rémy Coutable
63360adeae
Add requirements: { id: %r{[^/]+} } for all projects and groups namespaced API routes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-16 18:00:24 +01:00
Robert Schilling
1d38230a4a Remove last merge_request endpoint 2017-02-23 14:15:06 +01:00
Robert Schilling
55f2425a67 API: Make subscription API more RESTfuL 2017-02-21 17:44:44 +01:00
Robert Speicher
3a5df1d8fc Merge branch 'fix-api-mr-permissions' into 'security'
Ensure that only privileged users can access merge requests in the API

See merge request !2053
2017-01-23 13:54:35 -05:00
Douglas Barbosa Alexandre
b34c063ec4 Pass project to Entities::Label to check if user is subscribed 2016-11-17 15:10:13 -02:00
Robert Schilling
f0b42c1079 Grapify subscription API 2016-11-14 11:05:06 +01:00
Ahmad Sherif
0c22698bd4 Add API endpoints for un/subscribing from/to a label
Closes #15638
2016-05-12 22:48:09 +02:00