GraphQL: Add 'priority' sort for Issuables
Add GraphQL sorting for priority
on an Issuable
when 'priority', 'priority_asc' then order_due_date_and_labels_priority(excluded_labels: excluded_labels)
when 'priority_desc' then order_due_date_and_labels_priority('DESC', excluded_labels: excluded_labels)
in https://gitlab.com/gitlab-org/gitlab/blob/master/app/models/concerns/issuable.rb#L230-247
Will require updating Types::IssuableSortEnum
Due to the complexity of the sort, may require updates to the keyset pagination support
Since priority
leverages off of label_priority
, should consider doing #38295 (closed) first.
Edited by Brett Walker