summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* API for importing external reposBen2019-01-172-0/+47
|
* Merge branch 'shared_with_group_path' into 'master'Nick Thomas2019-01-161-1/+4
|\ | | | | | | | | Add group ful path to project's shared_with_groups See merge request gitlab-org/gitlab-ce!24052
| * Add group full path to project's shared_with_groupsMathieu Parent2019-01-151-1/+4
| |
* | Merge branch 'zj-feature-gate-set-project-path' into 'master'Kamil Trzciński2019-01-161-8/+7
|\ \ | | | | | | | | | | | | Allow setting of feature gates per project See merge request gitlab-org/gitlab-ce!24184
| * | Allow setting of feature gates per projectZeger-Jan van de Weg2019-01-141-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | For features the feature gates are sometimes projects, not groups or users. For example for git object pools: https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/5872 This commit allows for setting feature group gates based on projects, by its path as that seems most convenient.
* | | API: Fix default branch protection setting for Admin APIRobert Schilling2019-01-151-1/+1
| | |
* | | API: Support dots in wiki slugsRobert Schilling2019-01-151-2/+4
| |/ |/|
* | Merge branch '56110-cluster-kubernetes-api-500-error-on-post-request' into ↵Kamil Trzciński2019-01-112-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 'master' Improves restriction of multiple Kubernetes clusters via API Closes #56110 See merge request gitlab-org/gitlab-ce!24251
| * | Restrict multiple clusters through APIMayra Cabrera2019-01-102-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Modifies authorize! method to accept a third param, and then use it in combination with 'add_cluster' policy to appropriately restrict adding multiple clusters Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56110
* | | Remove releases_page feature flagShinya Maeda2019-01-112-3/+0
|/ / | | | | | | | | | | We introduced releases_page feature flag. Given this feature is deemed stable, we should remove this flag before 19th.
* | Fix files/blob api endpoint content dispositionFrancisco Javier López2019-01-101-1/+5
| |
* | Merge branch 'refactor-artifact-api-endpoint' into 'master'Grzegorz Bizon2019-01-091-5/+2
|\ \ | | | | | | | | | | | | | | | | | | Refactor artifact api endpoint Closes #55445 See merge request gitlab-org/gitlab-ce!23582
| * | Refactor project.latest_successful_builds_for defSteve Azzopardi2019-01-071-5/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | `project.latest_successful_builds_for(ref)` is being used to find a single job all the time. This results into us having to call `find_by` inside of the controller which violates our CodeReuse/ActiveRecord rubocop rule. Refactor `project.latest_successful_builds_for(ref)` to `project.latest_successful_build_for(job_name, ref)` which will execute the `find_by` inside of the model. Also create `project.latest_successful_build_for!(job_name, ref)` which raises an exception instead of returning nil.
* | Merge branch 'sh-switch-rack-request-to-actionpack' into 'master'Robert Speicher2019-01-091-1/+1
|\ \ | | | | | | | | | | | | Switch use of Rack::Request to ActionDispatch::Request See merge request gitlab-org/gitlab-ce!24199
| * | Switch use of Rack::Request to ActionDispatch::RequestStan Hu2019-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As mentioned in https://gitlab.com/gitlab-org/gitlab-ee/issues/9035#note_129093444, Rails 5 switched ActionDispatch::Request so that it no longer inherits Rack::Request directly. A middleware that uses Rack::Request to read the environment may see stale request parameters if another middleware modifies the environment via ActionDispatch::Request. To be safe, we should be using ActionDispatch::Request everywhere.
* | | Merge branch '49231-import-issues-csv' into 'master'Douwe Maan2019-01-071-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Import issues from CSV Closes #49231 See merge request gitlab-org/gitlab-ce!23532
| * | Refactor upload service to return uploaderHeinrich Lee Yu2019-01-071-1/+1
| |/ | | | | | | Also changes old calls to the service
* | Merge branch 'include-project' into 'master'Grzegorz Bizon2019-01-071-1/+2
|\ \ | | | | | | | | | | | | | | | | | | Allow to include another project files Closes #53903 See merge request gitlab-org/gitlab-ce!24101
| * | Allow to include files from another projectsKamil Trzciński2019-01-071-1/+2
| | | | | | | | | | | | This adds `project:, file:, ref:` specification support.
* | | Add tests for Release Link APIShinya Maeda2019-01-071-43/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for the API and add a couple of tests Add revert revert
* | | Add API for release asset linksShinya Maeda2019-01-072-0/+117
| |/ |/| | | | | Authorize against release not project
* | Merge branch '40473-api-support-for-kubernetes-integration' into 'master'Kamil Trzciński2019-01-053-0/+176
|\ \ | | | | | | | | | | | | | | | | | | Add API Support for Kubernetes integration Closes #40473 See merge request gitlab-org/gitlab-ce!23922
| * | Include CRUD endpoints for Cluster API40473-api-support-for-kubernetes-integrationMayra Cabrera2019-01-043-0/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the following initial CRUD endpoints for Clusters API: - GET list of clusters - GET specific cluster - POST add existing cluster (mimic of "Add cluster") - PUT update cluser - DELETE destroy cluster Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40473
* | | Merge branch 'feature/gb/expose-ci-api-url-variable' into 'master'Douwe Maan2019-01-041-0/+29
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Expose `CI_API_V4_URL` CI/CD variable Closes #54621 See merge request gitlab-org/gitlab-ce!23936
| * | Improve readablity of CI_API_V4_URL related codeGrzegorz Bizon2019-01-041-1/+1
| | |
| * | Minor improvements to CI_API_V4_URL variable exposurefeature/gb/expose-ci-api-url-variableGrzegorz Bizon2019-01-031-1/+1
| | |
| * | Add API::Helpers::Version and expose API root URLGrzegorz Bizon2019-01-032-8/+29
| | | | | | | | | | | | | | | This commits adds a new class that is supposed to represent Grape API version, like `v3` or `v4`.
| * | Expose method that returns GitLab API pathsGrzegorz Bizon2019-01-031-0/+8
| |/
* | Add unique constraint to release and urlShinya Maeda2019-01-041-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | Fix coding style Improve coding style Decouple UPDATE and DELETE operations of asset links Rename links_attributes to assets:links Rename exposed param and updated spec
* | Support CURD operation for release asset linksShinya Maeda2019-01-042-0/+33
|/ | | | | | - Add Releases::Links model - Expose it in release API - Add integration tests
* Merge branch '18667-handle-push-opts' into 'master'Douwe Maan2019-01-021-1/+2
|\ | | | | | | | | | | | | Handle 'git push -o ci.skip' Closes #18667 See merge request gitlab-org/gitlab-ce!15643
| * Add support for Git push options, specifically ci.skipJonathon Reinhart2018-12-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gitlab-org/gitlab-shell!166 added support for collecting push options from the environment, and passing them along to the /internal/post_receive API endpoint. This change handles the new push_options JSON element in the payload, and passes them on through to the GitPushService and GitTagPushService services. Futhermore, it adds support for the first push option, ci.skip. With this change, one can use 'git push -o ci.skip' to skip CI pipe execution. Note that the pipeline is still created, but in the "skipped" state, just like with the 'ci skip' commit message text. Implements #18667
* | Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqJohn Jarvis2019-01-011-0/+5
|\ \ | |/ |/|
| * Merge branch 'security-master-guests-jobs-api' into 'master'John Jarvis2019-01-011-0/+5
| |\ | | | | | | | | | | | | [master] Guest users have access to all Job information via the API See merge request gitlab/gitlabhq!2717
| | * Move pipeline auth above pipeline assignmentMatija Čupić2018-12-201-1/+1
| | |
| | * Authorize read_pipeline before read_buildMatija Čupić2018-12-191-0/+1
| | |
| | * Authorize read_build when listing pipeline jobsMatija Čupić2018-12-191-0/+2
| | |
| | * Authorize read_build action when listing jobsMatija Čupić2018-12-191-0/+2
| | |
* | | Merge branch 'fj-55781-fix-api-blob-content-disposition' into 'master'Sean McGivern2018-12-311-1/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fixed content-disposition in blob and files API endpoint Closes #55781 See merge request gitlab-org/gitlab-ce!24078
| * | | Fixed api content-disposition in blob and files endpointFrancisco Javier López2018-12-311-1/+7
| | | |
* | | | Add spec for Release APIShinya Maeda2018-12-314-65/+87
| | | | | | | | | | | | | | | | | | | | Add spec for all release API - GET, POST, PUT, DELETE. Also, fixes some minior bugs.
* | | | Add delete method in Release APIShinya Maeda2018-12-311-0/+21
| | | | | | | | | | | | | | | | Introduce DELETE endpoint in Release API
* | | | Refactor Release servicesAlessio Caiazza2018-12-312-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | CreateReleaseService and UpdateReleaseService now takes all the release attributes as constructor parameters. This will simplify attribute expansion
* | | | ReleasesFinder will always return a relationAlessio Caiazza2018-12-311-1/+1
| | | |
* | | | Expose assets in releases APIAlessio Caiazza2018-12-311-0/+14
| | | |
* | | | Add releases APIAlessio Caiazza2018-12-315-12/+137
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces Releases API under /api/v4/projects/:id/releases * We are introducing release policies at project level. * We are deprecating releases changes from tags, both api and web interface. * Tags::CreateService no longer create a release This feature is controlled by :releases_page feature flag
* | | Fix timeout issues retrieving branches via APIStan Hu2018-12-271-2/+2
|/ / | | | | | | | | | | | | | | | | | | 47d4890d changed the order of pagination so that the full list of branches would be passed to Gitaly to determine which ones had been merged, but this operation can timeout for large repositories with many branches. We only need to determine whether the found branches have been merged, so limit the scan to those. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55724
* | Bump Gitaly version to v1.12.0Stan Hu2018-12-211-3/+5
| |
* | Rename GroupHierarchy into ObjectHierarchyJarka Košanová2018-12-192-2/+2
|/ | | | | | - we now use the hierarchy class also for epics - also rename supports_nested_groups? into supports_nested_objects? - move it to a concern
* Hide confidential events in rubyBob Van Landuyt2018-12-171-30/+12
| | | | | | | | | | | | We're filtering the events using `Event#visible_to_user?`. At most we're loading 100 events at once. Pagination is also dealt with in the finder, but the resulting array is wrapped in a `Kaminari.paginate_array` so the API's pagination helpers keep working. We're passing the total count into that paginatable array, which would include confidential events. But we're not disclosing anything.