Commit 3c377535 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'id-split-query-for-code-nav-path' into 'master'

Split query for code-nav path into two queries

See merge request gitlab-org/gitlab!37092
parents 9eacfeb0 d529044c
---
title: Split query for code-nav path into two queries
merge_request: 37092
author:
type: performance
......@@ -28,11 +28,11 @@ module Gitlab
latest_commits_shas =
project.repository.commits(commit_sha, limit: LATEST_COMMITS_LIMIT).map(&:sha)
artifact =
::Ci::JobArtifact
.with_file_types(['lsif'])
.for_sha(latest_commits_shas, project.id)
.last
pipeline = @project.ci_pipelines.for_sha(latest_commits_shas).last
next unless pipeline
artifact = pipeline.job_artifacts.with_file_types(['lsif']).last
artifact&.job
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment