Skip to content

Commit

Permalink
chore: sequence id search in the issue search (#3807)
Browse files Browse the repository at this point in the history
  • Loading branch information
NarayanBavisetti authored Feb 27, 2024
1 parent 58e0170 commit aba170d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apiserver/plane/utils/issue_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@


def search_issues(query, queryset):
fields = ["name", "sequence_id"]
fields = ["name", "sequence_id", "project__identifier"]
q = Q()
for field in fields:
if field == "sequence_id" and len(query) <= 20:
sequences = re.findall(r"[A-Za-z0-9]{1,12}-\d+", query)
sequences = re.findall(r"\b\d+\b", query)
for sequence_id in sequences:
q |= Q(**{"sequence_id": sequence_id})
else:
Expand Down

0 comments on commit aba170d

Please sign in to comment.