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
bf0849ac
Commit
bf0849ac
authored
Jun 17, 2021
by
Adam Cohen
Committed by
Matthias Käppler
Jul 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sorting bug in dependency list
Changelog: changed EE: true
parent
65d333c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/services/security/dependency_list_service.rb
ee/app/services/security/dependency_list_service.rb
+1
-1
ee/config/feature_flags/development/sort_dependency_vulnerabilities.yml
...ure_flags/development/sort_dependency_vulnerabilities.yml
+1
-1
No files found.
ee/app/services/security/dependency_list_service.rb
View file @
bf0849ac
...
@@ -55,7 +55,7 @@ module Security
...
@@ -55,7 +55,7 @@ module Security
when
'packager'
when
'packager'
collection
.
sort_by!
{
|
a
|
a
[
:packager
]
}
collection
.
sort_by!
{
|
a
|
a
[
:packager
]
}
when
'severity'
when
'severity'
sort_dependency_vulnerabilities_by_severity!
(
collection
)
if
Feature
.
enabled?
(
:sort_dependency_vulnerabilities
,
@pipeline
.
project
)
sort_dependency_vulnerabilities_by_severity!
(
collection
)
if
Feature
.
enabled?
(
:sort_dependency_vulnerabilities
,
@pipeline
.
project
,
default_enabled:
true
)
sort_dependencies_by_severity!
(
collection
)
sort_dependencies_by_severity!
(
collection
)
else
else
collection
.
sort_by!
{
|
a
|
a
[
:name
]
}
collection
.
sort_by!
{
|
a
|
a
[
:name
]
}
...
...
ee/config/feature_flags/development/sort_dependency_vulnerabilities.yml
View file @
bf0849ac
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/332852
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/332852
milestone
:
'
14.0'
milestone
:
'
14.0'
type
:
development
type
:
development
group
:
group::composition analysis
group
:
group::composition analysis
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