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
c89f00d6
Commit
c89f00d6
authored
Oct 05, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boards - Sort closed issues by closedAt date
Changelog: fixed
parent
c92f1419
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/assets/javascripts/boards/boards_util.js
app/assets/javascripts/boards/boards_util.js
+3
-1
app/assets/javascripts/boards/graphql/lists_issues.query.graphql
...ets/javascripts/boards/graphql/lists_issues.query.graphql
+2
-0
No files found.
app/assets/javascripts/boards/boards_util.js
View file @
c89f00d6
...
...
@@ -43,7 +43,9 @@ export function formatListIssues(listIssues) {
let
sortedIssues
=
list
.
issues
.
edges
.
map
((
issueNode
)
=>
({
...
issueNode
.
node
,
}));
if
(
list
.
listType
!==
ListType
.
closed
)
{
sortedIssues
=
sortBy
(
sortedIssues
,
'
relativePosition
'
);
}
return
{
...
map
,
...
...
app/assets/javascripts/boards/graphql/lists_issues.query.graphql
View file @
c89f00d6
...
...
@@ -16,6 +16,7 @@ query ListIssues(
nodes
{
id
issuesCount
listType
issues
(
first
:
$first
,
filters
:
$filters
,
after
:
$after
)
{
edges
{
node
{
...
...
@@ -37,6 +38,7 @@ query ListIssues(
nodes
{
id
issuesCount
listType
issues
(
first
:
$first
,
filters
:
$filters
,
after
:
$after
)
{
edges
{
node
{
...
...
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