feat(tasks): allow filtering for reminders, assignees and labels with Typesense
This commit is contained in:
parent
748651447a
commit
d0e3062bee
@ -286,6 +286,21 @@ func (t *typesenseTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task,
|
||||
|
||||
for _, f := range opts.filters {
|
||||
|
||||
if f.field == "reminders" {
|
||||
f.field = "reminders.reminder"
|
||||
continue
|
||||
}
|
||||
|
||||
if f.field == "assignees" {
|
||||
f.field = "assignees.username"
|
||||
continue
|
||||
}
|
||||
|
||||
if f.field == "labels" || f.field == "label_id" {
|
||||
f.field = "labels.id"
|
||||
continue
|
||||
}
|
||||
|
||||
filter := f.field
|
||||
|
||||
switch f.comparator {
|
||||
|
Loading…
x
Reference in New Issue
Block a user