summaryrefslogtreecommitdiff
path: root/lib/api/pipelines.rb
Commit message (Collapse)AuthorAgeFilesLines
* Forbid the use of `#reload` and prefer `#reset`forbid-the-usage-of-reloadKamil Trzciński2019-04-151-1/+1
| | | | | | | The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
* Add new permission model `read-pipeline-variable`Agustin Henze2019-04-091-0/+13
| | | | | | | Used to get the variables via the API endpoint `/projects/:id/pipelines/:pipeline_id/variables` Signed-off-by: Agustin Henze <tin@redhat.com>
* [master] Pipelines section is available to unauthorized usersKamil Trzciński2019-01-311-3/+3
|
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-3/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Rename project's pipelines relationFrancisco Javier López2018-12-051-1/+1
|
* Fix API::Namespaces to accept namepaces with dotsif-52811-fix_namespaces_api_routingImre Farkas2018-11-281-1/+1
| | | | | It also renames the API::PROJECT_ENDPOINT_REQUIREMENTS constant to API::NAMESPACE_OR_PROJECT_REQUIREMENTS
* Authorize DestroyPipelineService against pipelineMatija Čupić2018-11-131-1/+1
|
* Destroy pipeline in serviceMatija Čupić2018-11-121-4/+4
| | | | | Move all logic for destroying a Pipeline into a service so it's easily reusable.
* Implement MVC for Pipeline deletion APIMatija Čupić2018-11-121-0/+15
|
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Add pipeline lists to GraphQLBob Van Landuyt2018-07-041-1/+1
| | | | | | | | | This adds Keyset pagination to GraphQL lists. PoC for that is pipelines on merge requests and projects. When paginating a list, the base-64 encoded id of the ordering field (in most cases the primary key) can be passed in the `before` or `after` GraphQL argument.
* Review 1Jacopo2018-06-011-1/+5
|
* Rename variables_attributes => variables and adds spec for exclude/only optionJacopo2018-06-011-2/+2
|
* Adds variables to POST api/v4/projects/:id/pipelineJacopo2018-06-011-0/+1
|
* Add sha filter to list pipelinesJames Ramsay2018-04-271-0/+1
| | | | | | | To find the pipeline for a specific sha requires scanning the list of all pipelines for a ref that contains the sha. This makes it hard to find the pipeline id needed to access a trace for a specific job run in the pipeline using the API.
* Track and act upon the number of executed queriesquery-countsYorick Peterse2018-02-011-0/+2
| | | | | | | | | | | This ensures that we have more visibility in the number of SQL queries that are executed in web requests. The current threshold is hardcoded to 100 as we will rarely (maybe once or twice) change it. In production and development we use Sentry if enabled, in the test environment we raise an error. This feature is also only enabled in production/staging when running on GitLab.com as it's not very useful to other users.
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-1/+1
|
* Introduce source to pipeline entitytrigger-sourceKamil Trzcinski2017-05-311-1/+1
|
* Improve documentationShinya Maeda2017-05-031-5/+5
|
* Add constant as ALLOWED_INDEXED_COLUMNSShinya Maeda2017-05-031-1/+1
|
* Use HasStatus::AVAILABLE_STATUSES instead of hard codingShinya Maeda2017-05-031-1/+1
|
* Revert "Use JSON type for sorting parameter (halfway)"Shinya Maeda2017-05-031-4/+4
| | | | This reverts commit 34127cb13ad72f65a24bdc8fc051363d3edd77cb.
* Use JSON type for sorting parameter (halfway)Shinya Maeda2017-05-031-4/+4
|
* No need to support sha for sortingShinya Maeda2017-05-031-1/+1
|
* Reduce playable columns for sortingShinya Maeda2017-05-031-1/+1
|
* Add name(User)Shinya Maeda2017-05-031-1/+2
|
* Fix how to use PipelinesFinderShinya Maeda2017-05-031-1/+1
|
* %[] to %w[]Shinya Maeda2017-05-031-4/+4
|
* %w() to %[]Shinya Maeda2017-05-031-5/+5
|
* Fix rubocop offences and rspec failuresShinya Maeda2017-05-031-3/+3
|
* Add specs. Plus, minor fixes.Shinya Maeda2017-05-031-1/+1
|
* Fixed those points.Shinya Maeda2017-05-031-9/+8
| | | | | | | | - username to user_id - Drop duration - Resolve comments - Add Changelog - Edit docs
* - Add new parameters for Pipeline APIShinya Maeda2017-05-031-1/+11
| | | | - Expand PipelinesFinder functions
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-1/+1
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* Expose pipelines as PipelineBasic `projects/:id/pipelines`26847-api-pipelines-use-basicToon Claes2017-03-031-2/+2
| | | | | | | | The `projects/:id/pipelines` exposed a lot of extra details that are superfluous and it was taking extra resources to fetch them. To get more details about a pipeline, use `projects/:id/pipelines/:pipeline_id`.
* Revert "Enable Style/DotPosition"Douwe Maan2017-02-231-2/+2
| | | | | | | | | | | | | | | This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9. # Conflicts: # .rubocop.yml # .rubocop_todo.yml # lib/gitlab/ci/config/entry/global.rb # lib/gitlab/ci/config/entry/jobs.rb # spec/lib/gitlab/ci/config/entry/factory_spec.rb # spec/lib/gitlab/ci/config/entry/global_spec.rb # spec/lib/gitlab/ci/config/entry/job_spec.rb # spec/lib/gitlab/ci/status/build/factory_spec.rb # spec/lib/gitlab/incoming_email_spec.rb
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-2/+2
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Enable Style/WordArrayDouwe Maan2017-02-231-1/+1
|
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-2/+2
|
* Enable Style/DotPositionDouwe Maan2017-02-231-2/+2
|
* fixed specs + docsdimitrieh2017-02-201-2/+2
|
* Merge branch ↵Rémy Coutable2016-11-221-2/+3
|\ | | | | | | | | | | | | | | | | | | '23532-define-common-helper-for-describe-pagination-params-in-api' into 'master' Add concern for reuse pagination params declaration in API Closes #23532 See merge request !7646
| * Define common helper for describe pagination params in apiSemyon Pupkov2016-11-221-2/+3
| |
* | Add api endpoint for creating a pipelineIdo Leibovich2016-11-181-0/+21
|/ | | | Add a new endpoint in the new API for creating a new pipeline, and return the details of that pipeline.
* Use PipelinesFinder in Pipelines APIZ.J. van de Weg2016-09-071-1/+4
|
* Add endpoints for pipelinesZ.J. van de Weg2016-08-181-0/+74