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
91d99721
Commit
91d99721
authored
Apr 27, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sort and order for policy violations
* Add params for sorting by classification Update unit tests
parent
907466b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
ee/app/assets/javascripts/license_compliance/store/modules/list/actions.js
...ascripts/license_compliance/store/modules/list/actions.js
+2
-0
ee/changelogs/unreleased/213908-sort-by-policy-violations.yml
...hangelogs/unreleased/213908-sort-by-policy-violations.yml
+5
-0
ee/spec/frontend/license_compliance/store/modules/list/actions_spec.js
...end/license_compliance/store/modules/list/actions_spec.js
+4
-0
No files found.
ee/app/assets/javascripts/license_compliance/store/modules/list/actions.js
View file @
91d99721
...
...
@@ -21,6 +21,8 @@ export const fetchLicenses = ({ state, dispatch }, params = {}) => {
params
:
{
per_page
:
10
,
page
:
state
.
pageInfo
.
page
||
1
,
sort_by
:
'
classifcation
'
,
sort_direction
:
'
desc
'
,
...
params
,
},
})
...
...
ee/changelogs/unreleased/213908-sort-by-policy-violations.yml
0 → 100644
View file @
91d99721
---
title
:
Sort license policy violations first
merge_request
:
30564
author
:
type
:
changed
ee/spec/frontend/license_compliance/store/modules/list/actions_spec.js
View file @
91d99721
...
...
@@ -141,6 +141,8 @@ describe('Licenses actions', () => {
const
paramsDefault
=
{
page
:
state
.
pageInfo
.
page
,
per_page
:
10
,
sort_by
:
'
classifcation
'
,
sort_direction
:
'
desc
'
,
};
mock
...
...
@@ -174,6 +176,8 @@ describe('Licenses actions', () => {
const
paramsSent
=
{
...
paramsGiven
,
per_page
:
10
,
sort_by
:
'
classifcation
'
,
sort_direction
:
'
desc
'
,
};
beforeEach
(()
=>
{
...
...
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