Commit graph

20 commits

Author SHA1 Message Date
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