Commit Graph

1995 Commits

Author SHA1 Message Date
Lee Tickett ec66f1b5ca Add name & search parameters to project environments API 2019-06-24 12:18:40 +00:00
Oswaldo Ferreira 3af348b6cf Automatically update MR merge-ref along merge status
This couples the code that transitions the `MergeRequest#merge_status`
and refs/merge-requests/:iid/merge ref update.

In general, instead of directly telling `MergeToRefService` to update
the merge ref, we should rely on `MergeabilityCheckService` to keep
both the merge status and merge ref synced. Now, if the merge_status is
`can_be_merged` it means the merge-ref is also updated to the latest.

We've also updated the logic to be more systematic and less user-based.
2019-06-20 11:48:30 -03:00
Achilleas Pipinellis 4298a28a99 Merge branch 'link_to_issue_statistics_api_endpoint_in_docs' into 'master'
Docs: Link issue statistics api endpoint in the docs

See merge request gitlab-org/gitlab-ce!29855
2019-06-20 10:21:54 +00:00
Jason Goodman d29ba16559 Update Docs for Container Registry API Delete Endpoints 2019-06-20 09:24:02 +00:00
Alexandru Croitor d18c101227 Link issue statistics api endpoint in the docs
Adds the missing link to issues_statistics api endpoint
2019-06-20 12:02:12 +03:00
Michael Leopard 8cf85b4bb5 Updating CE repo to include new EE users API changes
Updated users API documentation
Moved API level changes to the service level
2019-06-19 20:27:34 +00:00
Seiji Suenaga d5d2f8fb6b 59702 Fix API notification flags for MS Teams 2019-06-18 19:45:35 -05:00
Evan Read fc1fcba607 Merge branch 'bw-update-graphql-docs' into 'master'
Update GraphQL document to mention that epics are supported

See merge request gitlab-org/gitlab-ce!29777
2019-06-18 04:01:43 +00:00
Brett Walker f3daed242c Mention that epics are supported in GraphqlQL 2019-06-17 18:28:30 -05:00
Zsolt Kovari 0a6a0a5280 56737 Expose currently supported events properly on services API 2019-06-16 17:57:38 +02:00
Kamil Trzciński 991976642f Merge branch 'expose-project-git-depth-via-api' into 'master'
Expose default_git_depth via project API

Closes #62908

See merge request gitlab-org/gitlab-ce!29353
2019-06-12 11:02:36 +00:00
Fabio Pitino 3ac527b488 Expose ci_default_git_depth via project API
Enable Get and Update of ci_default_git_depth for
Project API.

Renaming Project#default_git_depth to :ci_default_git_depth
to give more context through the API usage.

Add API documentation
2019-06-12 09:51:45 +01:00
Oswaldo Ferreira 00a273d3a9 Revert "Automatically update MR merge-ref along merge status" 2019-06-11 13:08:25 -03:00
Patrick Derichs b70d23c25a Add task count and completed count to responses of Issue and MR
Add spec for task_completion_status

Add test cases for task_completion_status result

Extracted shared samples

Add new spec file for task completion status response

Fix style errors

Add changelog entry

Changed samples to Hashes

Remove test for successful request

Remove not nil expectation

Add task_completion_status to api documentation for issues

Add task_completion_status to api documentation for merge_requests

Refactor spec so it just requests one specific item

Add task_completion_status to Taskable

Simplified task completion status in entities

Refactor spec so it separates status code check and content check

Fix spec description text and field name
2019-06-07 11:15:55 +02:00
Marcel Amirault d46dca74ab Docs: Merge 5 api docs from EE to CE 2019-06-06 07:57:39 +00:00
Nikolay Samokhvalov c4ef54a1b5 Update description of Snippets API, create and update methods
Currently, the field used to fill the contents is called "code".
Also "visibility" is now required.
2019-06-03 23:46:29 +00:00
Douwe Maan 96ff9c6bd8 Merge branch 'osw-sync-merge-ref-upon-mergeability-check' into 'master'
Automatically update MR merge-ref along merge status

Closes #58495

See merge request gitlab-org/gitlab-ce!28513
2019-06-03 16:29:41 +00:00
Alessio Caiazza 83a8b77961 Add Namespace and ProjectStatistics to GraphQL API
We can query namespaces, and nested projects.

Projects now exposes statistics
2019-06-03 12:01:32 +02:00
Oswaldo Ferreira 96db70a444 Simplify merge_ref_head methods 2019-05-31 19:16:01 -03:00
Oswaldo Ferreira b965009ddd Automatically update MR merge-ref along merge status
This couples the code that transitions the `MergeRequest#merge_status`
and refs/merge-requests/:iid/merge ref update.

In general, instead of directly telling `MergeToRefService` to update
the merge ref, we should rely on `MergeabilityCheckService` to keep
both the merge status and merge ref synced. Now, if the merge_status is
`can_be_merged` it means the merge-ref is also updated to the latest.

We've also updated the logic to be more systematic and less user-based.
2019-05-31 19:16:01 -03:00
Kerri Miller 35c37fb293 Add optional param :start_project to allow variable commit targets
This extends POST#:id/repository/commits to allow the optional parameter
`:start_project`, which will allow targeting other projects besides the
one derived from `:id`.

Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/50850
2019-05-31 14:21:15 +00:00
Mike Greiling 62ac4b2485 Merge branch 'ee-7672-geo-remove-deprecated-wikis_count-and-repositories_count-fields-from-the-public-api-geo' into 'master'
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13025

See merge request gitlab-org/gitlab-ce!28701
2019-05-30 15:33:35 +00:00
Thiago Presa 383176fbf5 Fix highest role docs
The docs for the highest_role field was incorrectly added to the
/users endpoint. This commit adds it to the /users/:id
2019-05-30 06:10:52 +00:00
Marcel Amirault 3be0a35c78 Docs: Fix 4 docs to resolve follow-up issue 2019-05-30 03:52:46 +00:00
Achilleas Pipinellis 77eb61e898 Port some EE API docs to CE
The following EE files had small differences with their CE counterpart
so they have been ported to CE:

- doc/api/boards.md
- doc/api/discussions.md
- doc/api/notes.md
- doc/api/resource_label_events.md
- doc/api/services.md
2019-05-29 23:25:19 +00:00
Peter Marko 40490cc492 Add wiki size to project statistics 2019-05-29 16:08:25 +02:00
Valery Sizov c3980a2222 Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13025 2019-05-29 11:19:45 +03:00
Peter Marko 8f53e9ccc8 Add notify_only_default_branch option to PipelinesEmailService 2019-05-28 13:41:43 +02:00
Phil Hughes 11f85ae8c3 Enables GraphQL batch requests
Enabling GraphQL batch requests allows for multiple queries
to be sent in 1 request reducing the amount of requests
we send to the server.

Responses come come back in the same order as the queries were
provided.
2019-05-28 10:22:02 +02:00
Jacopo a9827e0e18 Removes duplicated members from api/projects/:id/members/all
When using the members/all api the same user was returned multiple times
when he was a member of the project/group and also of one of the
ancestor groups.
Now the member is returned only once giving priority to the membership
on the project and maintaining the same behaviour of the members UI.
2019-05-27 15:40:56 +02:00
Markus Koller 1b1a960bf3
Remove the circuit breaker API
The circuit breaker itself was removed in 11.5, this removes the
corresponding API endpoints which returned empty data since then.
2019-05-24 17:17:14 +02:00
Brett Walker 55d72c35c5 Update Epic Link documentation 2019-05-23 16:52:37 -05:00
Mathieu Parent 00c851384e API: Allow to get and set "masked" attribute for variables 2019-05-22 07:25:26 +02:00
Fabio Pitino cef8d1d408 Add allow_failure attribute to Job API
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50813
2019-05-21 09:21:53 +00:00
Douwe Maan 61c9edf63e Merge branch 'graphql-vision-docs' into 'master'
First pass at a graphql vision

See merge request gitlab-org/gitlab-ce!27959
2019-05-21 09:11:07 +00:00
Douwe Maan 5c836c15ef Merge branch 'patch-57' into 'master'
Update API dox to save others from my mistakes

See merge request gitlab-org/gitlab-ce!28368
2019-05-21 09:07:30 +00:00
Rémy Coutable 23660f3ae4 Merge branch 'ce-57402-add-issues-statistics-api-endpoints' into 'master'
Add issues_statistics api endpoints

See merge request gitlab-org/gitlab-ce!27366
2019-05-20 09:49:23 +00:00
Achilleas Pipinellis 0db41672ec
Bring all EE-only API docs to CE 2019-05-18 14:27:41 -07:00
Alexandru Croitor 9ff6edf690 Review updates and cleanup
* Cleaned issues and issues_statistics docs
* Renamed param with_labels_data to with_labels_details
* Added spec for N+1 check when retrieving labels from issue
* Refactoed CheckAssigneesCount validation class
2019-05-17 13:56:25 +03:00
Lee Tickett a4e9259d8a #46469 - Added ref querystring parameter to project search to allow searching on branches other than master 2019-05-17 06:10:08 +00:00
Sarah Groff Hennigh-Palermo 8e4bc00090 Update API dox to save others from my mistakes 2019-05-16 15:51:36 +00:00
Alexandru Croitor f117c032ac Add params validations and remove extra params support
Remove label_name and milestone_title params support
Add mutually_exclusive validation for author_id and author_username
Add mutually_exclusive validation for assignee_id and assignee_username
Add validation to allow single value for asignee_username on CE
Add separate issue_stats_params helper for statistics params and
reuse in issues_params.
2019-05-15 10:15:17 +03:00
Nicholas Bishop c2eaae6132 Fix typo 2019-05-14 21:30:06 +00:00
Sean McGivern 00af4c6d6a Allow replying to an individual note in the API
If you can do this in the UI, you should be able to do it in the API. If
a discussion is not a single note discussion, or it is replyable, you
can reply to it.
2019-05-06 19:48:32 +01:00
Krasimir Angelov 85609c117e Implement support for CI variables of type file
Add env_var and file as supported types for CI variables. Variables of
type file expose to users existing gitlab-runner behaviour - save
variable value into a temp file and set the path to this file in an ENV
var named after the variable key.

Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
2019-05-06 13:11:42 +00:00
Marcel Amirault 5ddfa5765e Docs: Merge EE doc/​user/group to CE 2019-05-05 12:21:46 +00:00
Mayra Cabrera 89132bbdd6 Add gitlab-managed option to clusters form
When this option is enabled, GitLab will create namespaces and service
accounts as usual. When disabled, GitLab wont create any project
specific kubernetes resources

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
2019-05-03 01:05:53 +00:00
Mike Lewis 43648e5ed9 Merge branch 'bertrand-lpl-master-patch-56649' into 'master'
Replace misinterpreted `|` caracter in a table

See merge request gitlab-org/gitlab-ce!25319
2019-05-01 16:24:57 +00:00
Nick Thomas f5646b416e
First pass at a graphql vision 2019-05-01 16:19:54 +01:00
Oswaldo Ferreira a0e38afc02 Backport docs update for multiple assignees for MRs
This backports API and quick action docs.
2019-04-30 23:55:29 +00:00