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 ...@@ -28,11 +28,11 @@ module Gitlab
latest_commits_shas = latest_commits_shas =
project.repository.commits(commit_sha, limit: LATEST_COMMITS_LIMIT).map(&:sha) project.repository.commits(commit_sha, limit: LATEST_COMMITS_LIMIT).map(&:sha)
artifact = pipeline = @project.ci_pipelines.for_sha(latest_commits_shas).last
::Ci::JobArtifact
.with_file_types(['lsif']) next unless pipeline
.for_sha(latest_commits_shas, project.id)
.last artifact = pipeline.job_artifacts.with_file_types(['lsif']).last
artifact&.job artifact&.job
end 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