chore: corrected the subissue ordering (#5030)

This commit is contained in:
Bavisetti Narayan 2024-07-04 19:51:05 +05:30 committed by GitHub
parent 9a927ded84
commit a36d1a753e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -149,7 +149,7 @@ class InboxIssueAPIEndpoint(BaseAPIView):
description_html=request.data.get("issue", {}).get( description_html=request.data.get("issue", {}).get(
"description_html", "<p></p>" "description_html", "<p></p>"
), ),
priority=request.data.get("issue", {}).get("priority", "low"), priority=request.data.get("issue", {}).get("priority", "none"),
project_id=project_id, project_id=project_id,
state=state, state=state,
) )

View file

@ -99,6 +99,7 @@ class SubIssuesEndpoint(BaseAPIView):
), ),
) )
.annotate(state_group=F("state__group")) .annotate(state_group=F("state__group"))
.order_by("-created_at")
) )
# create's a dict with state group name with their respective issue id's # create's a dict with state group name with their respective issue id's