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
1db6d01f
Commit
1db6d01f
authored
Oct 03, 2019
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add IssuableSortEnum and IssueSortEnum
this lays the basis for in progress MRs
parent
80e49607
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
app/graphql/resolvers/issues_resolver.rb
app/graphql/resolvers/issues_resolver.rb
+1
-1
app/graphql/types/issuable_sort_enum.rb
app/graphql/types/issuable_sort_enum.rb
+10
-0
app/graphql/types/issue_sort_enum.rb
app/graphql/types/issue_sort_enum.rb
+10
-0
No files found.
app/graphql/resolvers/issues_resolver.rb
View file @
1db6d01f
...
...
@@ -35,7 +35,7 @@ module Resolvers
description:
'Issues closed after this date'
argument
:search
,
GraphQL
::
STRING_TYPE
,
# rubocop:disable Graphql/Descriptions
required:
false
argument
:sort
,
Types
::
SortEnum
,
argument
:sort
,
Types
::
Issue
SortEnum
,
description:
'Sort issues by this criteria'
,
required:
false
,
default_value:
'created_desc'
...
...
app/graphql/types/issuable_sort_enum.rb
0 → 100644
View file @
1db6d01f
# frozen_string_literal: true
module
Types
# rubocop: disable Graphql/AuthorizeTypes
class
IssuableSortEnum
<
SortEnum
graphql_name
'IssuableSort'
description
'Values for sorting issuables'
end
# rubocop: enable Graphql/AuthorizeTypes
end
app/graphql/types/issue_sort_enum.rb
0 → 100644
View file @
1db6d01f
# frozen_string_literal: true
module
Types
# rubocop: disable Graphql/AuthorizeTypes
class
IssueSortEnum
<
IssuableSortEnum
graphql_name
'IssueSort'
description
'Values for sorting issues'
end
# rubocop: enable Graphql/AuthorizeTypes
end
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