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
a152be0e
Commit
a152be0e
authored
Apr 20, 2021
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable `packages_finder_helper_deploy_token` by default
Changelog: performance
parent
505e29d3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/finders/concerns/packages/finder_helper.rb
app/finders/concerns/packages/finder_helper.rb
+1
-1
changelogs/unreleased/327916-enable-packages_finder_helper_deploy_token-by-default.yml
...enable-packages_finder_helper_deploy_token-by-default.yml
+5
-0
config/feature_flags/development/packages_finder_helper_deploy_token.yml
...flags/development/packages_finder_helper_deploy_token.yml
+1
-1
No files found.
app/finders/concerns/packages/finder_helper.rb
View file @
a152be0e
...
...
@@ -25,7 +25,7 @@ module Packages
end
def
projects_visible_to_reporters
(
user
,
within_group
:)
if
user
.
is_a?
(
DeployToken
)
&&
Feature
.
enabled?
(
:packages_finder_helper_deploy_token
)
if
user
.
is_a?
(
DeployToken
)
&&
Feature
.
enabled?
(
:packages_finder_helper_deploy_token
,
default_enabled: :yaml
)
user
.
accessible_projects
else
within_group
.
all_projects
...
...
changelogs/unreleased/327916-enable-packages_finder_helper_deploy_token-by-default.yml
0 → 100644
View file @
a152be0e
---
title
:
Improve the packages finder helper SQL queries when handling deploy tokens
merge_request
:
59739
author
:
type
:
performance
config/feature_flags/development/packages_finder_helper_deploy_token.yml
View file @
a152be0e
...
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/326808
milestone
:
'
13.11'
type
:
development
group
:
group::package
default_enabled
:
fals
e
default_enabled
:
tru
e
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