Commit Graph

862 Commits

Author SHA1 Message Date
Rémy Coutable 467b44cbbf Merge branch 'api-branch-status' into 'master'
API: Expose branch status

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/24938

See merge request !7796
2016-11-30 17:40:39 +00:00
Rémy Coutable 2c0d9890e6 Merge branch 'grapify-files-api' into 'master'
Grapify the files API

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/22928

See merge request !7806
2016-11-30 15:10:56 +00:00
Robert Schilling 2ce66c071f API: Expose branch status 2016-11-30 13:13:50 +01:00
Robert Schilling dd5f71138c Grapify the files API 2016-11-30 12:48:10 +01:00
Robert Schilling 7c607a55ab Grapify the projects API 2016-11-28 21:01:43 +01:00
Rémy Coutable e17328986a Merge branch 'zj-expose-coverage-pipelines' into 'master'
Expose coverage on GET pipelines/:id

Closes gitlab-org/gitlab-ce#24801

See merge request !7670
2016-11-25 16:51:53 +00:00
Z.J. van de Weg 752d72f876 Add docs for pipeline coverage
[ci skip]
2016-11-25 17:39:00 +01:00
Rémy Coutable d03ca3d02e Merge branch 'issue-24534' into 'master'
Remove unnecessary sentences for return codes in the API documentation

Closes #24534

See merge request !7511
2016-11-25 15:43:05 +00:00
Robert Speicher fe4ae12ec8 Merge branch 'rephrase-system-notes' into 'master'
Rephrase some system notes to be compatible with new system note style

See merge request !7692
2016-11-25 04:36:13 +00:00
Luis Alonso Chavez Armendariz ed61d44e1e Remove unnecessary sentences for status codes in the API documentation 2016-11-24 10:28:52 -07:00
Robert Schilling 28f4d7aa28 You can only assign default_branch when editing a project or when creating a project for a specified user [ci skip]
You can only assign default_branch when editing a project [ci skip]
2016-11-24 15:33:23 +01:00
Douwe Maan 6df22f72c6 Rephrase some system notes to be compatible with new system note style 2016-11-24 18:26:29 +08:00
Ruben Davila b437d305ca Add default_branch attr to Project API payload in docs. 2016-11-23 19:27:22 -05:00
Rémy Coutable 010790ee39 Merge branch 'api-delete-group-share' into 'master'
API: Add endpoint to delete a group share

Closes #24771

See merge request !7662
2016-11-23 15:17:59 +00:00
Robert Schilling eff1b05ab1 API: Add endpoint to delete a group share 2016-11-23 12:53:37 +01:00
Valery Sizov 3789cfe056 Add a starting date to milestones 2016-11-23 13:41:04 +02:00
Achilleas Pipinellis 93792e8da6 Add changes to JIRA api docs
[ci skip]
2016-11-22 18:31:34 +01:00
Robert Schilling 22d16ccdb5 Document both valid cases for API iid filter 2016-11-22 13:43:53 +01:00
Robert Schilling cb11d3521c Fix IID filter for merge requests and milestones 2016-11-22 08:25:07 +01:00
Rémy Coutable 0be557331d Merge branch 'grapify-users-api' into 'master'
Grapify the users API

Certain endpoints return different entities based on which user issues the request. Right now, I am not aware how to specify multiple entities as part of the description block of the endpoint. @rymai Do you know something about that.

## What are the relevant issue numbers?

Related to #22928

See merge request !7147
2016-11-21 12:37:20 +00:00
Rémy Coutable c99522f21e Merge branch 'create-pipeline-endpoint' into 'master'
Add API endpoint for creating a pipeline

Fixes #23468

See merge request !7209
2016-11-21 11:30:23 +00:00
Robert Schilling 4cb3c0b404 Grapify the users API 2016-11-21 10:53:28 +01:00
Ido Leibovich fbfc7523cb Add api endpoint for creating a pipeline
Add a new endpoint in the new API for creating a new pipeline, and return the details of that pipeline.
2016-11-18 23:12:21 +02:00
Achilleas Pipinellis 3be717a34c Merge branch 'rs-project-archive-doc-fix' into 'master'
Correct curl examples for archive and unarchive project API

[ci skip]

See merge request !7559
2016-11-18 13:52:49 +00:00
Robert Speicher 8996548e13 Correct curl examples for archive and unarchive project API
[ci skip]
2016-11-18 13:20:59 +02:00
Sean McGivern 7912289631 Allow sorting groups in API
Allow `order_by` and `sort` parameters to `/api/v3/groups.json`. At
present, only ordering by name and path is supported, and the default
sort is name ascending (alphabetical order).
2016-11-17 18:37:52 +00:00
Sean McGivern fb952df93e Merge branch 'patch-9' into 'master'
Fix invalid JSON in Builds API doc

See merge request !7475
2016-11-15 20:54:14 +00:00
Douwe Maan b3616e3074 Merge branch 'master-recursiveTree' into 'master'
Issue #4270: Recursive option for files through API

## What does this MR do?
- Adds recursive param to tree API request. With this param we can get all repository paths in a single request. 
- Related [old github pull request](https://github.com/gitlabhq/gitlabhq/pull/9311)

## Are there points in the code the reviewer needs to double check?

## Why was this MR needed?
Requested in #4270 
## Screenshots (if relevant)

## Does this MR meet the acceptance criteria?

- [X] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [X] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [X] API support added
- Tests
  - [X] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?
Requested in #4270

See merge request !6088
2016-11-15 12:15:43 +00:00
Douwe Maan 374b8e95c3 Merge branch '21076-deleted-merged-branches' into 'master'
Add button to delete all merged branches

## What does this MR do?

It adds a button to the branches page that the user can use to delete all the branches that are already merged. This can be used to clean up all the branches that were forgotten to delete while merging MRs.

**Note**  
~~This MR is WIP until MR !6408 is merged.~~

## Are there points in the code the reviewer needs to double check?

The UX of the actual "Delete merged branches" button.

## Why was this MR needed?

Fixes #21076

## Screenshots
![Branches page without "Delete all merged" button](/uploads/3a2936a83c3547a0fce92a74af880a2d/Screen_Shot_2016-10-17_at_20.06.30.png)

Before:
![Screen_Shot_2016-10-17_at_20.07.11](/uploads/55efcebf4e0a45dbfc70ba4a11ca152c/Screen_Shot_2016-10-17_at_20.07.11.png)


After:

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?

Closes #21076

See merge request !6449
2016-11-15 12:08:22 +00:00
Bernhard Häussner 038ea5e79c Fix invalid JSON in Builds API doc
The JSON of the example responses were missing a few `,` and therefor
invalid. This adds them to make those JSONs valid.
2016-11-15 10:40:36 +00:00
Rebeca Méndez 5c966f70fb Issue #4270: Recursive option for files through API 2016-11-12 10:00:39 +01:00
Sean McGivern a29544f5fe Merge branch 'feature/api_owned_resource' into 'master'
Add api endpoint `/groups/owned`

See merge request !7103
2016-11-10 09:26:41 +00:00
Toon Claes 1afab9eb79 Add button to delete all merged branches
It adds a button to the branches page that the user can use to delete
all the branches that are already merged. This can be used to clean up
all the branches that were forgotten to delete while merging MRs.

Fixes #21076.
2016-11-09 21:04:03 +01:00
Sean McGivern 2976ad40f8 Merge branch '23731-add-param-to-user-api' into 'master'
Add query param to filter users by 'external' & 'blocked' type on API

Closes #23731

See merge request !7109
2016-11-09 17:13:21 +00:00
Yatish Mehta a0aaf93fe5
Add query param to filter users on 'external' & 'blocked' type on API 2016-11-08 12:04:05 -08:00
Lin Jen-Shin 62735ef8fa Add failed_pipeline and success_pipeline to API doc
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_17981448
2016-11-08 23:52:45 +08:00
Lin Jen-Shin 3744d629e8 Merge remote-tracking branch 'upstream/master' into pipeline-notifications
* upstream/master: (70 commits)
  Fix routing spec for group controller
  Add small improvements to constrainers and specs
  Faster search
  Fix broken commits search
  Changed helper method to check for none on params Moved if statements around in view
  API: Return 400 when creating a systemhook fails
  Update non-exist group spinach test to match routing
  Bump omniauth-gitlab to 1.0.2 to fix incompatibility with omniauth-oauth2
  Replace trigger with the new ID of the docs project
  Refactor method name
  17492 Update link color for more accessible contrast
  Fixed todos empty state when filtering
  Refactor namespace regex
  implements reset incoming email token on issues modal and account page, reactivates all tests and writes more tests for it
  Use separate email-friendly token for incoming email and let incoming email token be reset
  Use the Gitlab Workhorse HTTP header in the admin dashboard
  Refactor project routing
  Fix 404 when visit /projects page
  Rewritten spinach git_blame tests to rspec feature tests
  Add tests for project#index routing
  ...
2016-11-08 23:52:17 +08:00
Borja Aparicio 4f2c441161 Added API endpoint groups/owned 2016-11-08 10:55:35 +01:00
Rares Sfirlogea 63f0b09974 Expose Label id to API
[e44da1c] Add Label API expected keys to tests

[ac929c8] Update Label API documentation
2016-11-07 15:09:33 +01:00
Robert Schilling c7c3b77120 Update label's API documentation 2016-11-07 09:26:57 +01:00
Lin Jen-Shin 64e8b7ca49 Merge remote-tracking branch 'upstream/master' into pipeline-notifications
* upstream/master: (74 commits)
  Fetch locals to avoid undefined method/local error
  Remove author according to the document
  Simplify implementation of entity serializers
  Add documentation for the "Only allow merge requests to be merged if all discussions are resolved" feature
  Complete and improve specs
  Add setting to only allow merge requests to be merged when all discussions are resolved
  Apply `*_params_ce + *_params_ee` pattern to MergeRequestsController
  Add tests for deployment and environment entitites
  Add tests for serialization entities, add user entity
  Only skip group when it's actually a group in the "Share with group" select
  Fix: Todos Filter Shows All Users
  Fix: Guest sees some repository details and gets 404
  Move shared params to a helper
  GrapeDSL for project hooks
  Update commits.scss
  updated styling commit SHA on branches page + added to changelog
  change build list height to show 6,5 builds + improve padding of list, with first/last child selectors
  Refine build entity tests a little
  Expose commit author if author exists
  Ignore builds directory from eslint
  ...
2016-11-05 02:17:40 +08:00
Rodolfo Santos 1db9f826c1 Add setting to only allow merge requests to be merged when all discussions are resolved
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-04 14:58:40 +01:00
Robert Speicher 588bc001e2 Merge branch 'backport-ee-js-groups-api' into 'master'
Backport Group API code that was added in EE only

Group API code that was added in EE only. /cc @vsizov

See merge request !7205
2016-11-04 12:50:17 +00:00
Nick Thomas fa4f904f25 Document multiple repository storage paths 2016-11-04 04:01:08 +00:00
Lin Jen-Shin f16dca3051 Merge remote-tracking branch 'upstream/master' into pipeline-notifications
* upstream/master: (23 commits)
  Clarify the author field for the changelog documentation
  Add and update .gitignore & .gitlab-ci.yml templates for 8.14
  Update "Installation from source" guide for 8.14.0
  Add CHANGELOG entries for latest patches
  Merge branch 'fix/import-export-symlink-vulnerability' into 'security'
  Merge branch 'fix/import-projectmember-security' into 'security'
  Use stubs instead of modifying global states
  Add changelog instructions to CHANGELOG.md
  Try not to include anything globally!
  Update help banner for bin/changelog
  Update docs and test description
  Update docs and unexpose token
  Initialize form validation on new group form.
  Unchange username_validator.
  Move snake_case to camelCase.
  Change show-gl-field-errors to gl-show-field-errors
  Fix changelog.
  List gl_field_error as gl_field_errors dep.
  Break out GlFieldError into separate file.
  Add gl field errors to group name edit form.
  ...
2016-11-04 03:01:48 +08:00
Rémy Coutable d8153e3125 Merge branch 'zj-expose-system-hooks' into 'master'
Expose more info for SystemHooks

See merge request !6964
2016-11-03 16:05:40 +00:00
Lin Jen-Shin b0af0ab62f Merge remote-tracking branch 'upstream/master' into pipeline-notifications
* upstream/master: (26 commits)
  Add a `--force` option to bin/changelog
  Update examples in changelog docs to use single quotes around title
  Use the server's base URL without relative URL part when creating links in JIRA
  Make ESLint ignore instrumented files for coverage analysis (!7236)
  Check that JavaScript file names match convention (!7238)
  Removed z-index for filters on issue boards
  GitLab 8.13 not 13
  Replace MR Description Format links
  Fix gdb backtrace command
  Update gitlab.yml.example
  remove extra spaces from app/workers/post_receive.rb
  Add Rake task to create/repair GitLab Shell hooks symlinks
  Added guide for upgrading Postgres using Slony
  Ensure hook tokens are write-only in the API
  Add support for token attr in project hooks API
  Add a CHANGELOG entry
  Fix edit button wiki
  Updated Sortable JS plugin
  Allow owners to fetch source code in CI builds
  fixes milestone dropdown not select issue
  ...
2016-11-03 20:43:24 +08:00
Z.J. van de Weg 37f229c735 Update docs and test description
[ci skip]
2016-11-02 13:24:24 +01:00
Zeger-Jan van de Weg 57fd233a55 Update docs and unexpose token 2016-11-02 13:14:12 +01:00
Rémy Coutable 2023511753 Merge branch 'gpocentek/gitlab-ce-api-webhook-token' into 'master'
This MR adds support for the `token` attribute in the project hook API.

Feature requested on a dependant project: https://github.com/gpocentek/python-gitlab/issues/170

See merge request !7220
2016-11-02 11:46:45 +00:00