Commit Graph

37 Commits

Author SHA1 Message Date
Bob Van Landuyt 04b046587f Add pipeline lists to GraphQL
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.
2018-07-04 10:53:39 +02:00
Jacopo 3871ea33ca Review 1 2018-06-01 17:02:02 +02:00
Jacopo 6ae16b6d4d Rename variables_attributes => variables and adds spec for exclude/only option 2018-06-01 14:23:46 +02:00
Jacopo 9b2e19fe37 Adds variables to POST api/v4/projects/:id/pipeline 2018-06-01 14:23:45 +02:00
James Ramsay b65fcc320d Add sha filter to list pipelines
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.
2018-04-27 11:00:52 +01:00
Yorick Peterse cca61980d5
Track and act upon the number of executed queries
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.
2018-02-01 17:00:46 +01:00
🙈 jacopo beschi 🙉 729f05f0e3 Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
Robert Schilling 6a2ee0968e API: Use defined project requirements 2017-08-31 14:57:47 +02:00
Kamil Trzcinski 161af17c1b Introduce source to pipeline entity 2017-05-31 14:17:49 +02:00
Shinya Maeda 255bfd6583 Improve documentation 2017-05-03 02:11:51 +09:00
Shinya Maeda 8653c2dfc9 Add constant as ALLOWED_INDEXED_COLUMNS 2017-05-03 02:11:51 +09:00
Shinya Maeda 0a36bfa994 Use HasStatus::AVAILABLE_STATUSES instead of hard coding 2017-05-03 02:11:51 +09:00
Shinya Maeda 0e8266f238 Revert "Use JSON type for sorting parameter (halfway)"
This reverts commit 34127cb13ad72f65a24bdc8fc051363d3edd77cb.
2017-05-03 02:11:51 +09:00
Shinya Maeda 22a4d124f7 Use JSON type for sorting parameter (halfway) 2017-05-03 02:11:51 +09:00
Shinya Maeda d1ca5f46d4 No need to support sha for sorting 2017-05-03 02:11:51 +09:00
Shinya Maeda 9324a464ef Reduce playable columns for sorting 2017-05-03 02:11:51 +09:00
Shinya Maeda 175800299b Add name(User) 2017-05-03 02:11:51 +09:00
Shinya Maeda 56f50cbb3a Fix how to use PipelinesFinder 2017-05-03 02:11:51 +09:00
Shinya Maeda d33e762167 %[] to %w[] 2017-05-03 02:11:51 +09:00
Shinya Maeda af7cb5b931 %w() to %[] 2017-05-03 02:11:50 +09:00
Shinya Maeda fd302061f9 Fix rubocop offences and rspec failures 2017-05-03 02:11:50 +09:00
Shinya Maeda df834306c1 Add specs. Plus, minor fixes. 2017-05-03 02:11:50 +09:00
Shinya Maeda 994e49b3fb Fixed those points.
- username to user_id
- Drop duration
- Resolve comments
- Add Changelog
- Edit docs
2017-05-03 02:11:50 +09:00
Shinya Maeda e9d9445195 - Add new parameters for Pipeline API
- Expand PipelinesFinder functions
2017-05-03 02:11:50 +09:00
Rémy Coutable 63360adeae
Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced API routes
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-16 18:00:24 +01:00
Toon Claes 59e7d04bc7 Expose pipelines as PipelineBasic `projects/:id/pipelines`
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`.
2017-03-03 09:52:04 +01:00
Douwe Maan 56de781a2c Revert "Enable Style/DotPosition"
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
2017-02-23 09:33:19 -06:00
Douwe Maan 1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan 7d4b52b27d Enable Style/WordArray 2017-02-23 09:32:41 -06:00
Douwe Maan 206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan 3dadf306dd Enable Style/DotPosition 2017-02-23 09:31:56 -06:00
dimitrieh b86640fee9 fixed specs + docs 2017-02-20 17:08:29 +01:00
Rémy Coutable 79030a0e12 Merge branch '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
2016-11-22 15:33:57 +00:00
Semyon Pupkov 77cf855bb9 Define common helper for describe pagination params in api 2016-11-22 09:19:26 +05: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
Z.J. van de Weg 3152477114 Use PipelinesFinder in Pipelines API 2016-09-07 15:38:03 +02:00
Z.J. van de Weg de7b8e51b8 Add endpoints for pipelines 2016-08-18 16:56:39 +02:00