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
503f3f64
Commit
503f3f64
authored
Apr 10, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-04-10
parents
a5c567d2
23fb465c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
8 deletions
+50
-8
.gitlab-ci.yml
.gitlab-ci.yml
+38
-4
app/finders/issuable_finder.rb
app/finders/issuable_finder.rb
+7
-4
changelogs/unreleased/ab-37125-assigned-issues-query.yml
changelogs/unreleased/ab-37125-assigned-issues-query.yml
+5
-0
No files found.
.gitlab-ci.yml
View file @
503f3f64
...
...
@@ -864,16 +864,50 @@ codequality:
expire_in
:
1 week
sast
:
<<
:
*
except-docs
image
:
registry.gitlab.com/gitlab-org/gl-sast:latest
<<
:
*
dedicated-no-docs-no-db-pull-cache-job
image
:
docker:stable
variables
:
CONFIDENCE_LEVEL
:
2
SAST_CONFIDENCE_LEVEL
:
2
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
tags
:
[]
before_script
:
[]
cache
:
{}
dependencies
:
[]
services
:
-
docker:stable-dind
script
:
-
/app/bin/run .
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
docker run
--env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
artifacts
:
paths
:
[
gl-sast-report.json
]
dependency_scanning
:
<<
:
*dedicated-no-docs-no-db-pull-cache-job
image
:
docker:stable
variables
:
DOCKER_DRIVER
:
overlay2
allow_failure
:
true
tags
:
[]
before_script
:
[]
cache
:
{}
dependencies
:
[]
services
:
-
docker:stable-dind
script
:
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
docker run
--env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
artifacts
:
paths
:
[
gl-dependency-scanning-report.json
]
qa:internal:
<<
:
*dedicated-no-docs-no-db-pull-cache-job
services
:
[]
...
...
app/finders/issuable_finder.rb
View file @
503f3f64
...
...
@@ -159,7 +159,10 @@ class IssuableFinder
finder_options
=
{
include_subgroups:
params
[
:include_subgroups
],
only_owned:
true
}
GroupProjectsFinder
.
new
(
group:
group
,
current_user:
current_user
,
options:
finder_options
).
execute
else
ProjectsFinder
.
new
(
current_user:
current_user
,
project_ids_relation:
item_project_ids
(
items
)).
execute
opts
=
{
current_user:
current_user
}
opts
[
:project_ids_relation
]
=
item_project_ids
(
items
)
if
items
ProjectsFinder
.
new
(
opts
).
execute
end
@projects
=
projects
.
with_feature_available_for_user
(
klass
,
current_user
).
reorder
(
nil
)
...
...
@@ -316,9 +319,9 @@ class IssuableFinder
def
by_project
(
items
)
items
=
if
project?
items
.
of_projects
(
projects
(
items
)
).
references_project
elsif
projects
(
items
)
items
.
merge
(
projects
(
items
)
.
reorder
(
nil
)).
join_project
items
.
of_projects
(
projects
).
references_project
elsif
projects
items
.
merge
(
projects
.
reorder
(
nil
)).
join_project
else
items
.
none
end
...
...
changelogs/unreleased/ab-37125-assigned-issues-query.yml
0 → 100644
View file @
503f3f64
---
title
:
Reduce complexity of issuable finder query.
merge_request
:
18219
author
:
type
:
performance
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