Commit Graph

27 Commits

Author SHA1 Message Date
Robert Speicher 0f02ce3563
Ensure a job preloads the project's namespace to avoid N+1 2018-07-20 10:00:09 -07:00
Stan Hu 2bb94ff7f9 Eliminate N+1 queries for CI job artifacts in /api/projects/:id/pipelines/:pipeline_id/jobs 2018-06-04 16:47:16 -07:00
🙈 jacopo beschi 🙉 c6b1043e9d Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
Micaël Bergeron fc6587f1f2 Add proxy_download to perform proxied sending of all files 2018-03-09 09:16:06 -05:00
Matija Čupić feb3449709
Use preload instead of includes to avoid joins 2018-01-15 22:04:08 +01:00
Matija Čupić 87cc03736c
Fix N+1 builds query in Jobs list API 2018-01-14 23:14:11 +01:00
Shinya Maeda afef385337 Add doc. Fix spec. Add erase_build in protected_ref rule 2017-11-07 02:47:05 +09:00
Shinya Maeda c8eb2a914b Fix spec. Revert update check. 2017-11-06 23:24:25 +09:00
Shinya Maeda 9b58b8e363 Do not allow jobs to be erased 2017-11-06 22:20:44 +09:00
Grzegorz Bizon ec7a12da81 Revert moving authorization hook in jobs API 2017-09-06 14:45:28 +02:00
Grzegorz Bizon 80b3dcc777 Extract job artifacts API code to a separate file 2017-09-06 11:20:12 +02:00
Grzegorz Bizon d4154ef30f Do not require API authentication if artifacts are public 2017-09-05 13:22:15 +02:00
Grzegorz Bizon 3b874414c0 Do not use artifacts metadata to access single artifact 2017-09-05 12:34:49 +02:00
Grzegorz Bizon dfb8fcbb65 Use API helper to send artifact file through Workhorse 2017-09-05 11:16:49 +02:00
Grzegorz Bizon f3f1ad3992 Add API endpoint for downloading single job artifact 2017-09-04 14:09:03 +02:00
Robert Schilling 6a2ee0968e API: Use defined project requirements 2017-08-31 14:57:47 +02:00
Zeger-Jan van de Weg dc8e1676cd
Upgrade grape to 1.0
Main feature was the deprication of the Hashie stuff, so the access by
calling keys as method is gone now.
2017-08-16 22:06:31 +02:00
Kamil Trzcinski 6185d12c18 Add missing specs 2017-06-01 16:34:48 +02:00
Kamil Trzcinski e61f38d79e Fix data inconsistency issue for old artifacts by moving them to a currently used path 2017-06-01 14:39:48 +02:00
Grzegorz Bizon 53219857dd Check ability to update build on the API resource 2017-05-05 14:04:58 +02:00
Kamil Trzciński 828d81ee1f Optimise trace handling code to use streaming instead of full read 2017-04-06 16:20:27 +00: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 ae9218a7fd Remove user_can_download_artifacts
It was actually not used anywhere.
2017-03-07 23:45:32 +01:00
Toon Claes 901fbda67c Make it possible to query scope as scope[]=
Since issues also accepts the query parameter iids[]=, also make it
possible query scope like that.
2017-03-07 23:45:32 +01:00
Toon Claes f372400673 Add GET /projects/:id/pipelines/:pipeline_id/jobs endpoint
Add endpoint to get the jobs scoped to a pipeline.
2017-03-07 23:45:32 +01:00
Z.J. van de Weg 75123fa9f7 Incorporate review, drop old endpoint
The endpoint dropped, get ':id/repository/commits/:sha/jobs', should be
replace by a new endpoint.
2017-03-06 14:34:47 +01:00
Z.J. van de Weg 111748ea89 Rename Builds to Jobs in the API
Fixes gitlab-org/gitlab-ce#28515

[ci skip]
2017-03-06 14:34:07 +01:00