fix: issue search endpoint for parent issues (#705)

* fix: issue search endpoint for parent issues

* fix: parent search

* fix: search endpoint
This commit is contained in:
pablohashescobar 2023-04-06 13:58:27 +05:30 committed by GitHub
parent cf662f6e6c
commit f2144c3e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,10 +217,10 @@ class IssueSearchEndpoint(BaseAPIView):
project__project_projectmember__member=self.request.user, project__project_projectmember__member=self.request.user,
) )
if parent: if parent == "true":
issues.filter(parent__isnull=True) issues = issues.filter(parent__isnull=True)
if blocker_blocked_by and issue_id: if blocker_blocked_by and issue_id:
issues.filter(blocker_issues=issue_id, blocked_issues=issue_id) issues = issues.filter(blocker_issues=issue_id, blocked_issues=issue_id)
return Response( return Response(
issues.values( issues.values(