[WEB-2573] improvement: search-issues API optimization. (#5727)
* limit search results to 100 issues.
This commit is contained in:
parent
bfef0e89e0
commit
927d265209
2 changed files with 2 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -97,6 +97,6 @@ class IssueSearchEndpoint(BaseAPIView):
|
|||
"state__name",
|
||||
"state__group",
|
||||
"state__color",
|
||||
),
|
||||
)[:100],
|
||||
status=status.HTTP_200_OK,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue