Skip to content

Commit

Permalink
[WEB-2573] improvement: search-issues API optimization. (#5727)
Browse files Browse the repository at this point in the history
* limit search results to 100 issues.
  • Loading branch information
prateekshourya29 authored Oct 1, 2024
1 parent bfef0e8 commit 927d265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apiserver/plane/app/views/search/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def filter_issues(self, query, slug, project_id, workspace_search):
"project__identifier",
"project_id",
"workspace__slug",
)
)[:100]

def filter_cycles(self, query, slug, project_id, workspace_search):
fields = ["name"]
Expand Down
2 changes: 1 addition & 1 deletion apiserver/plane/app/views/search/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ def get(self, request, slug, project_id):
"state__name",
"state__group",
"state__color",
),
)[:100],
status=status.HTTP_200_OK,
)

0 comments on commit 927d265

Please sign in to comment.