[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

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"]

View file

@ -97,6 +97,6 @@ class IssueSearchEndpoint(BaseAPIView):
"state__name",
"state__group",
"state__color",
),
)[:100],
status=status.HTTP_200_OK,
)