[WEB-2573] improvement: search-issues API optimization. (#5727)

* limit search results to 100 issues.
This commit is contained in:
Prateek Shourya
2024-10-01 14:15:35 +05:30
committed by GitHub
parent bfef0e89e0
commit 927d265209
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class GlobalSearchEndpoint(BaseAPIView):
"project__identifier",
"project_id",
"workspace__slug",
)
)[:100]
def filter_cycles(self, query, slug, project_id, workspace_search):
fields = ["name"]
+1 -1
View File
@@ -97,6 +97,6 @@ class IssueSearchEndpoint(BaseAPIView):
"state__name",
"state__group",
"state__color",
),
)[:100],
status=status.HTTP_200_OK,
)