Code quality endpoint redirects into a new one

head_path and base_path endpoints sent by the backend, are pointing to /gitlab-org/gitlab-ee/builds/build_id/artifacts/raw/codeclimate.json, and that is redirected to /gitlab-org/gitlab-ee/-/jobs/build_id/artifacts/raw/codeclimate.json

I think code quality feature was introduced after the API renaming. We could be fetching directly the second endpoint. We could avoid this redirect and improve performance.

  1. https://gitlab.com/gitlab-org/gitlab-ee/issues/2910#note_41602680
  2. https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3033#note_41878389
  3. https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3033#note_41886076

cc @dzaporozhets

Edited Sep 29, 2017 by Filipa Lacerda
Assignee Loading
Time tracking Loading