dev: grouping for priority

This commit is contained in:
pablohashescobar 2024-03-22 19:40:16 +05:30
parent aea30897d5
commit 4341f00dd0

View File

@ -385,7 +385,11 @@ class IssueViewSet(WebhookMixin, BaseViewSet):
)
else:
return self.paginate(
order_by=order_by_param,
order_by=(
"priority_order"
if order_by_param in ["priority", "-priority"]
else order_by_param
),
request=request,
queryset=issue_queryset,
on_results=lambda issues: issue_on_results(