gitlab-org--gitlab-foss/lib/api/helpers
Tomasz Maczukin e79ab1115b
Remove legacy Runners support in /api/v4/jobs/request
In Runner v1.3.0 we've started to send User-Agent header with Runner's
version data. Since GitLab v8.12.0 we've started to use this header to check
if used Runner's version supports 204 status code instead of 404 as a
response when there is no jobs to execute by a Runner.

In APIv4 (introduced in GitLab 9.0.0) will require Runner v9.0.0. And
writing more accurately: GitLab Runner v9.0.0 will require GitLab at
least 9.0.0. Because of such breaking change we are able to switch
entirely to 204 response code and there is no need to do check of
User-Agent.

This commit removes useless code and complexity.
2017-03-20 09:40:36 +01:00
..
custom_validators.rb
internal_helpers.rb Update storage settings to allow extra values per shard 2017-03-03 12:13:30 -03:00
members_helpers.rb
pagination.rb Paginate all endpoints that return an array 2017-02-16 15:32:01 +01:00
runner.rb Remove legacy Runners support in /api/v4/jobs/request 2017-03-20 09:40:36 +01:00