summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Allow to include files from another projectsinclude-projectKamil Trzciński2019-01-041-1/+2
| | | | This adds `project:, file:, ref:` specification support.
* 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.
* Remove rails4 specific codeJasper Maes2018-12-161-1/+1
|
* Fix deprecation: Passing ActiveRecord::Base objects to ↵Jasper Maes2018-12-131-1/+1
| | | | sanitize_sql_hash_for_assignment
* Allow suggesting single line changes in diffsOswaldo Ferreira2018-12-133-0/+44
|
* Merge branch ↵Grzegorz Bizon2018-12-101-0/+24
|\ | | | | | | | | | | | | | | | | '54626-able-to-download-a-single-archive-file-with-api-by-ref-name' into 'master' Add endpoint to download single artifact by ref Closes #54626 See merge request gitlab-org/gitlab-ce!23538
| * Add endpoint to download single artifact by refSteve Azzopardi2018-12-071-0/+24
| | | | | | | | | | | | | | | | | | | | Add a new endpoint `projects/:id/jobs/artifacts/:ref_name/raw/*artifact_path?job=name` which is the close the web URL for consistency sake. This endpoint can be used to download a single file from artifacts for the specified ref and job. closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54626
* | Merge branch 'store-correlation-logs' into 'master'Stan Hu2018-12-072-5/+5
|\ \ | | | | | | | | | | | | Log and pass correlation-id between Unicorn, Sidekiq and Gitaly See merge request gitlab-org/gitlab-ce!22844
| * | Log and pass correlation-id between Unicorn, Sidekiq and GitalyKamil Trzciński2018-12-062-5/+5
| |/ | | | | | | | | | | | | | | The Correlation ID is taken or generated from received X-Request-ID. Then it is being passed to all executed services (sidekiq workers or gitaly calls). The Correlation ID is logged in all structured logs as `correlation_id`.
* | Backports some changes from gitlab-ee!7885Rubén Dávila2018-12-071-1/+16
| |
* | Merge branch '54857-fix-templates-path-traversal' into 'master'Cindy Pallares2018-12-061-1/+1
|\ \ | | | | | | | | | | | | | | | | | | [master]: Prevent a path traversal attack on global file templates Closes #2745 See merge request gitlab/gitlabhq!2677
| * | Prevent a path traversal attack on global file templatesNick Thomas2018-12-051-1/+1
| | | | | | | | | | | | | | | | | | The API permits path traversal characters like '../' to be passed down to the template finder. Detect these requests and cause them to fail with a 500 response code.
* | | Merge branch 'blob-count2' into 'master'Rémy Coutable2018-12-061-6/+1
|\ \ \ | |_|/ |/| | | | | | | | Support unlimited file search in web UI and API See merge request gitlab-org/gitlab-ce!23553
| * | Optimized file search to work without limitsJan Provaznik2018-12-061-6/+1
| | | | | | | | | | | | | | | | | | | | | * removed 100 limit on file search results because we load all results anyway * expensive processing (parsing match content, utf encoding) is done only for selected page in paginated output
* | | Rename project's pipelines relationFrancisco Javier López2018-12-053-4/+4
| | |
* | | Merge branch '54826-use-read_repository-scope-on-read-only-files-endpoints' ↵Grzegorz Bizon2018-12-051-0/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | into 'master' Resolve "Use read_repository scope on read-only files endpoints" Closes #54826 See merge request gitlab-org/gitlab-ce!23534
| * | Use read_repository scope on read-only files APIJames Lopez2018-12-041-0/+4
| |/
* | Merge commit '83f0798e7dc588f0e4cb6816daadeef7dbfc8b81' into ↵Grzegorz Bizon2018-12-0450-61/+67
|\ \ | |/ | | | | | | | | fix/gb/encrypt-runners-tokens * commit '83f0798e7dc588f0e4cb6816daadeef7dbfc8b81': (101 commits)
| * Merge branch 'if-52811-fix_namespaces_api_routing' into 'master'Nick Thomas2018-11-3049-61/+61
| |\ | | | | | | | | | | | | Fix API::Namespaces routing to accept namepaces with dots See merge request gitlab-org/gitlab-ce!22912
| | * Fix API::Namespaces to accept namepaces with dotsif-52811-fix_namespaces_api_routingImre Farkas2018-11-2849-61/+61
| | | | | | | | | | | | | | | It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to API::NAMESPACE_OR_PROJECT_REQUIREMENTS
| * | Merge branch 'if-40385-prohibit_impersonation' into 'master'Rémy Coutable2018-11-291-0/+6
| |\ \ | | | | | | | | | | | | | | | | Add config to prohibit impersonation See merge request gitlab-org/gitlab-ce!23338
| | * | Add config to disable impersonationImre Farkas2018-11-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds gitlab.impersonation_enabled config option defaulting to true to keep the current default behaviour. Only the act of impersonation is modified, impersonation token management is not affected.
* | | | Merge commit '6852680584a1b22788f451457a6042eabf862a73' into ↵Grzegorz Bizon2018-11-292-1/+38
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | fix/gb/encrypt-runners-tokens * commit '6852680584a1b22788f451457a6042eabf862a73': (57 commits)
| * | | Merge branch '33705-merge-request-rebase-api' into 'master'Sean McGivern2018-11-292-1/+38
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | Add a rebase API endpoint for merge requests Closes #33705 See merge request gitlab-org/gitlab-ce!23296
| | * | Allow the status of a rebase to be determinedNick Thomas2018-11-282-1/+12
| | | |
| | * | Add a rebase API endpoint for merge requestsNick Thomas2018-11-271-0/+26
| | |/
* | | Merge branch 'master' into fix/gb/encrypt-runners-tokensGrzegorz Bizon2018-11-285-4/+28
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * master: (243 commits) Conflicts: db/schema.rb lib/gitlab/import_export/import_export.yml
| * | Merge branch '50341-cleanup-useless-project-import-attributes' into 'master'Douwe Maan2018-11-281-2/+7
| |\ \ | | | | | | | | | | | | | | | | Removes all the irrelevant code and columns that were migrated from the Project… See merge request gitlab-org/gitlab-ce!21497
| | * | Removes all the irrelevant import related code and columnsTiago Botelho2018-11-271-2/+7
| | |/ | | | | | | | | | | | | Clears the import related columns and code from the Project model over to the ProjectImportState model