2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
class IssueSortEnum < IssuableSortEnum
|
|
|
|
graphql_name 'IssueSort'
|
|
|
|
description 'Values for sorting issues'
|
2019-12-26 22:10:19 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
value 'DUE_DATE_ASC', 'Due date by ascending order.', value: :due_date_asc
|
|
|
|
value 'DUE_DATE_DESC', 'Due date by descending order.', value: :due_date_desc
|
|
|
|
value 'RELATIVE_POSITION_ASC', 'Relative position by ascending order.', value: :relative_position_asc
|
|
|
|
value 'SEVERITY_ASC', 'Severity from less critical to more critical.', value: :severity_asc
|
|
|
|
value 'SEVERITY_DESC', 'Severity from more critical to less critical.', value: :severity_desc
|
2021-09-30 23:02:18 +05:30
|
|
|
value 'POPULARITY_ASC', 'Number of upvotes (awarded "thumbs up" emoji) by ascending order.', value: :popularity_asc
|
|
|
|
value 'POPULARITY_DESC', 'Number of upvotes (awarded "thumbs up" emoji) by descending order.', value: :popularity_desc
|
2019-12-21 20:55:43 +05:30
|
|
|
end
|
|
|
|
end
|
2020-01-01 13:55:28 +05:30
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
Types::IssueSortEnum.prepend_mod_with('Types::IssueSortEnum')
|