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
f3e32907
Commit
f3e32907
authored
Sep 16, 2019
by
Brett Walker
Committed by
Peter Leitzen
Sep 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename GraphQL Sort to SortEnum
and remove unused GraphQL Order enum
parent
a6c0c3f4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
27 deletions
+23
-27
app/graphql/resolvers/issues_resolver.rb
app/graphql/resolvers/issues_resolver.rb
+10
-9
app/graphql/types/order.rb
app/graphql/types/order.rb
+0
-8
app/graphql/types/sort.rb
app/graphql/types/sort.rb
+0
-10
app/graphql/types/sort_enum.rb
app/graphql/types/sort_enum.rb
+13
-0
No files found.
app/graphql/resolvers/issues_resolver.rb
View file @
f3e32907
...
...
@@ -11,31 +11,32 @@ module Resolvers
description:
'The list of IIDs of issues, e.g., [1, 2]'
argument
:state
,
Types
::
IssuableStateEnum
,
required:
false
,
description:
"Current state of Issue"
description:
'Current state of Issue'
argument
:label_name
,
GraphQL
::
STRING_TYPE
.
to_list_type
,
required:
false
,
description:
"Labels applied to the Issue"
description:
'Labels applied to the Issue'
argument
:created_before
,
Types
::
TimeType
,
required:
false
,
description:
"Issues created before this date"
description:
'Issues created before this date'
argument
:created_after
,
Types
::
TimeType
,
required:
false
,
description:
"Issues created after this date"
description:
'Issues created after this date'
argument
:updated_before
,
Types
::
TimeType
,
required:
false
,
description:
"Issues updated before this date"
description:
'Issues updated before this date'
argument
:updated_after
,
Types
::
TimeType
,
required:
false
,
description:
"Issues updated after this date"
description:
'Issues updated after this date'
argument
:closed_before
,
Types
::
TimeType
,
required:
false
,
description:
"Issues closed before this date"
description:
'Issues closed before this date'
argument
:closed_after
,
Types
::
TimeType
,
required:
false
,
description:
"Issues closed after this date"
description:
'Issues closed after this date'
argument
:search
,
GraphQL
::
STRING_TYPE
,
# rubocop:disable Graphql/Descriptions
required:
false
argument
:sort
,
Types
::
Sort
,
# rubocop:disable Graphql/Descriptions
argument
:sort
,
Types
::
SortEnum
,
description:
'Sort issues by this criteria'
,
required:
false
,
default_value:
'created_desc'
...
...
app/graphql/types/order.rb
deleted
100644 → 0
View file @
a6c0c3f4
# frozen_string_literal: true
module
Types
class
Types::Order
<
Types
::
BaseEnum
value
"id"
,
"Created at date"
value
"updated_at"
,
"Updated at date"
end
end
app/graphql/types/sort.rb
deleted
100644 → 0
View file @
a6c0c3f4
# frozen_string_literal: true
module
Types
class
Types::Sort
<
Types
::
BaseEnum
value
"updated_desc"
,
"Updated at descending order"
value
"updated_asc"
,
"Updated at ascending order"
value
"created_desc"
,
"Created at descending order"
value
"created_asc"
,
"Created at ascending order"
end
end
app/graphql/types/sort_enum.rb
0 → 100644
View file @
f3e32907
# frozen_string_literal: true
module
Types
class
SortEnum
<
BaseEnum
graphql_name
'Sort'
description
'Common sort values'
value
'updated_desc'
,
'Updated at descending order'
value
'updated_asc'
,
'Updated at ascending order'
value
'created_desc'
,
'Created at descending order'
value
'created_asc'
,
'Created at ascending order'
end
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