Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d529044c
Commit
d529044c
authored
Jul 16, 2020
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split query for code-nav path into two queries
parent
b7510d7a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
changelogs/unreleased/id-split-query-for-code-nav-path.yml
changelogs/unreleased/id-split-query-for-code-nav-path.yml
+5
-0
lib/gitlab/code_navigation_path.rb
lib/gitlab/code_navigation_path.rb
+5
-5
No files found.
changelogs/unreleased/id-split-query-for-code-nav-path.yml
0 → 100644
View file @
d529044c
---
title
:
Split query for code-nav path into two queries
merge_request
:
37092
author
:
type
:
performance
lib/gitlab/code_navigation_path.rb
View file @
d529044c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment