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
3dc5b05e
Commit
3dc5b05e
authored
Jun 10, 2021
by
Andrew Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort epic list in issue sidebar by title
Changelog: changed EE: true
parent
6700c65b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
app/assets/javascripts/sidebar/components/sidebar_dropdown_widget.vue
...avascripts/sidebar/components/sidebar_dropdown_widget.vue
+2
-0
app/assets/javascripts/sidebar/constants.js
app/assets/javascripts/sidebar/constants.js
+2
-0
ee/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
...ontend/sidebar/components/sidebar_dropdown_widget_spec.js
+4
-2
spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
...ontend/sidebar/components/sidebar_dropdown_widget_spec.js
+4
-2
No files found.
app/assets/javascripts/sidebar/components/sidebar_dropdown_widget.vue
View file @
3dc5b05e
...
...
@@ -20,6 +20,7 @@ import {
IssuableAttributeType
,
issuableAttributesQueries
,
noAttributeId
,
defaultEpicSort
,
}
from
'
../constants
'
;
export
default
{
...
...
@@ -118,6 +119,7 @@ export default {
fullPath
:
this
.
attrWorkspacePath
,
title
:
this
.
searchTerm
,
state
:
this
.
$options
.
IssuableAttributeState
[
this
.
issuableAttribute
],
sort
:
this
.
issuableAttribute
===
IssuableType
.
Epic
?
defaultEpicSort
:
null
,
};
},
update
(
data
)
{
...
...
app/assets/javascripts/sidebar/constants.js
View file @
3dc5b05e
...
...
@@ -37,6 +37,8 @@ import projectMilestonesQuery from './queries/project_milestones.query.graphql';
export
const
ASSIGNEES_DEBOUNCE_DELAY
=
250
;
export
const
defaultEpicSort
=
'
TITLE_ASC
'
;
export
const
assigneesQueries
=
{
[
IssuableType
.
Issue
]:
{
query
:
getIssueAssignees
,
...
...
ee/spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
View file @
3dc5b05e
...
...
@@ -450,8 +450,9 @@ describe('SidebarDropdownWidget', () => {
expect
(
groupEpicsSpy
).
toHaveBeenNthCalledWith
(
1
,
{
fullPath
:
mockIssue
.
groupPath
,
title
:
'
'
,
sort
:
'
TITLE_ASC
'
,
state
:
'
opened
'
,
title
:
''
,
});
});
...
...
@@ -474,8 +475,9 @@ describe('SidebarDropdownWidget', () => {
expect
(
groupEpicsSpy
).
toHaveBeenNthCalledWith
(
2
,
{
fullPath
:
mockIssue
.
groupPath
,
title
:
mockSearchTerm
,
sort
:
'
TITLE_ASC
'
,
state
:
'
opened
'
,
title
:
mockSearchTerm
,
});
});
});
...
...
spec/frontend/sidebar/components/sidebar_dropdown_widget_spec.js
View file @
3dc5b05e
...
...
@@ -451,8 +451,9 @@ describe('SidebarDropdownWidget', () => {
expect
(
projectMilestonesSpy
).
toHaveBeenNthCalledWith
(
1
,
{
fullPath
:
mockIssue
.
projectPath
,
title
:
''
,
sort
:
null
,
state
:
'
active
'
,
title
:
''
,
});
});
...
...
@@ -477,8 +478,9 @@ describe('SidebarDropdownWidget', () => {
expect
(
projectMilestonesSpy
).
toHaveBeenNthCalledWith
(
2
,
{
fullPath
:
mockIssue
.
projectPath
,
title
:
mockSearchTerm
,
sort
:
null
,
state
:
'
active
'
,
title
:
mockSearchTerm
,
});
});
});
...
...
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