Skip to content

Commit

Permalink
fix: mentions_filters updated with the new setup
Browse files Browse the repository at this point in the history
  • Loading branch information
henit-chobisa committed Oct 30, 2023
1 parent 4331570 commit ffa6b66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apiserver/plane/utils/issue_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ def filter_assignees(params, filter, method):

def filter_mentions(params, filter, method):
if method == "GET":
mentions = params.get("mentions").split(",")
mentions = [item for item in params.get("mentions").split(",") if item != 'null']
mentions = filter_valid_uuids(mentions)
if len(mentions) and "" not in mentions:
filter["mentions__in"] = mentions
else:
if params.get("mentions", None) and len(params.get("mentions")):
if params.get("mentions", None) and len(params.get("mentions")) and params.get("assignees") != 'null':
filter["mentions__in"] = params.get("mentions")
return filter

Expand Down
1 change: 1 addition & 0 deletions web/constants/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export const ISSUE_LAYOUTS: {
];

export const ISSUE_LIST_FILTERS = [
{ key: "mentions", title: "Mentions"},
{ key: "priority", title: "Priority" },
{ key: "state", title: "State" },
{ key: "assignees", title: "Assignees" },
Expand Down

0 comments on commit ffa6b66

Please sign in to comment.