Rémy Coutable
9e324ded43
Reduce queries in spec/requests/api/merge_requests_spec.rb
...
This reduces the queries from 97137 to 65136 and the query time from
02:04 to 01:27 in spec/requests/api/merge_requests.rb.
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-03-13 17:56:26 +01:00
Alexandru Croitor
be3578d245
Add array support for labels
...
* Support label parameter as comma separated and array of strings
for merge requests and issues api endpoints
2019-03-06 13:28:42 +02:00
Igor Drozdov
5169dafccf
Forbid creating discussions for users with restricted access
2019-03-04 18:37:08 +00:00
Nermin Vehabovic
b467dca485
Added: Specs for sort page break tie in the merge request list API
2019-02-16 16:57:14 +01:00
Nermin Vehabovic
eccfab4445
Added: Specs for sort page breaks on notes
2019-02-16 16:11:31 +01:00
Jasper Maes
dc1eb2c5c3
Fix deprecation: Using positional arguments in integration tests
2018-12-22 14:42:41 +01:00
Jasper Maes
bf73520079
convert specs in javascripts/ and support/ to new syntax
2018-12-21 10:10:26 +01:00
blackst0ne
b44a2c801a
Update specs to rails5 format
...
Updates specs to use new rails5 format.
The old format:
`get :show, { some: params }, { some: headers }`
The new format:
`get :show, params: { some: params }, headers: { some: headers }`
2018-12-19 10:04:31 +11:00
Jacopo
c068ac67b3
Filter by `None`/`Any` for labels in issues/mrs API
...
By using the parameters `?labels=None|Any` the user can filter
issues/mrs from the API that has `none/any` label.
Affected endpoints are:
- /api/issues
- /api/projects/:id/issues
- /api/groups/:id/issues
- /api/merge_requests
- /api/projects/:id/merge_requests
- /api/groups/:id/merge_requests
2018-11-23 16:11:52 +01:00
Douwe Maan
4d23090877
Verify metrics don't introduce new N+1 issue in MR API
2018-11-06 17:18:03 +01:00
Sean McGivern
aff7dccc1f
Use policies to determine if attributes can be set in the API
...
This is more idiomatic than checking membership explicitly.
2018-08-22 14:17:29 +01:00
Bob Van Landuyt
3bcb04f100
Add mutation toggling WIP state of merge requests
...
This is mainly the setup of mutations for GraphQL. Including
authorization and basic return type-structure.
2018-07-25 18:37:12 +02:00
Kia Mei Somabes
37af75a2e0
Resolve "do not set updated_at when creating note"
2018-07-12 09:26:09 +00:00
Chantal Rollison
b7e6e4e48b
Fixed flaky spec for merge request lists
2018-07-02 09:31:29 -07:00
Rémy Coutable
3cf683629e
Merge branch 'ccr/add_locked_state' into 'master'
...
Add locked state to merge request API
See merge request gitlab-org/gitlab-ce!20186
2018-07-01 09:25:01 +00:00
Chantal Rollison
c2b622b2a4
Add locked state to merge request API
2018-06-28 07:12:00 -07:00
Bob Van Landuyt
54b56f20b7
Expose permissions on types in GraphQL
...
This adds a reusable way to expose permissions for a user to types in
GraphQL.
2018-06-28 13:50:17 +02:00
Bob Van Landuyt
9b65d4bb41
Initial setup GraphQL using graphql-ruby 1.8
...
- All definitions have been replaced by classes:
http://graphql-ruby.org/schema/class_based_api.html
- Authorization & Presentation have been refactored to work in the
class based system
- Loaders have been replaced by resolvers
- Times are now coersed as ISO 8601
2018-06-06 10:58:54 +02:00
Bob Van Landuyt
aa4b1ae712
Add `present_using` to types
...
By specifying a presenter for the object type, we can keep the logic
out of `GitlabSchema`.
The presenter gets initialized using the object being presented, and
the context (including the `current_user`).
2018-06-05 20:47:42 +02:00
Felipe Artur
8ed12efecd
Add merge requests list endpoint for groups
2018-05-31 15:29:07 +00:00
Jan Provaznik
7a76caa5a8
Merge request and commit discussions API
2018-05-01 12:39:44 +00:00
Jan Provaznik
dcdfa04b32
Add discussion API
...
* adds basic discussions API for issues and snippets
* reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
2018-03-07 12:27:50 +01:00
Markus Koller
b7cd99c376
Allow including custom attributes in API responses
2018-02-08 13:30:34 +01:00
Brent Greeff
34b9cc9674
API: get participants from merge_requests & issues
2018-01-05 15:21:53 +00:00
Markus Koller
6902848a9c
Support custom attributes on projects
2017-11-06 10:51:46 +01:00
Jacopo
2f40dac352
Refactor `have_http_status` into `have_gitlab_http_status` in the specs
2017-10-20 10:13:18 +02:00
Jacopo
26ec874f77
Get Project Branch API shows an helpful error message on invalid refname
...
In API v4 when requesting a branch with an invalid refname shows an
helpful error message: 'The branch refname is invalid'.
2017-10-18 09:45:27 +02:00
Markus Koller
e9eae3eb0d
Support custom attributes on users
2017-09-28 16:49:42 +00:00
Robert Schilling
ee4820a526
Add a spec when ressource is not modified
2017-08-29 10:12:10 +02:00
Robert Schilling
915dd57fe2
Add tests for the unmodified header
2017-08-28 17:10:34 +02:00
Rémy Coutable
649382b1c2
Fix the /projects/:id/repository/branches endpoint to handle dots in the branch name when the project full patch contains a `/`
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:29:31 +02:00