Commit Graph

74 Commits

Author SHA1 Message Date
kolaente
d7d39b6f1a fix(views): enable search in bucket filters 2024-11-19 16:35:54 +01:00
kolaente
44f9e1fe8d fix: make search in saved filter work 2024-11-19 11:08:32 +01:00
kolaente
d81f2db6ef chore: replace all uses of bucket_id with the const 2024-10-02 10:43:51 +02:00
kolaente
425f6378c6 fix(kanban): make loading tasks for a bucket work
This fixes two closely-related bugs:
1. When loading tasks from a bucket of a saved filter, the saved filter query would override the user-supplied filter, which would cause to only tasks matching the saved filter query to be returned.
2. When a filter query for a bucket was specified, the function would only check if one of the top level filters was a filter for tasks in a specific bucket. That means a filter like "bucket_id = 42 && labels = foo" would return the expected result, while a filter like "labels = foo && (bucket_id = 42 && priority = 1)" would fail with an error 500 because the task_buckets table was not joined to the sql query. The fix from the first bug caused such filter queries.
2024-10-02 10:41:38 +02:00
kolaente
1451f6e46f fix(kanban): correctly paginate filtered kanban buckets
Resolves https://github.com/go-vikunja/vikunja/issues/314
2024-09-14 09:37:21 +02:00
kolaente
45ff5907e6 fix(view): correctly resolve bucket filter when paginating 2024-09-13 19:45:48 +02:00
kolaente
2063da9eec chore(web): move web handler package to Vikunja 2024-08-29 16:15:28 +02:00
kolaente
e56b2232bb fix(typesense): do not try to sort by position when searching in a saved filter
This change fixes a bug where Typesense would try to sort by the project view of a saved filter. The view position is not indexed in Typesense, hence filtering fails. Because sorting by position is not a feature in saved filters, I've removed the logic for sorting saved filters with Typesense.
2024-06-05 10:24:28 +02:00
kolaente
48676050d7 feat(tasks): expand subtasks (#2345)
This change adds a parameter to expand subtasks - if provided, Vikunja will ensure all subtasks are present in the results list.

Resolves https://community.vikunja.io/t/subtasks-show-on-different-pages/2292
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2345
Co-authored-by: kolaente <k@knt.li>
Co-committed-by: kolaente <k@knt.li>
2024-06-04 10:27:23 +00:00
kolaente
d8ca1a2de1 fix(favorites): make favorites work with configurable views 2024-04-14 17:12:16 +02:00
kolaente
3519b8b2fe fix(tasks): index and order by task position when using typesense 2024-04-13 17:19:27 +02:00
kolaente
6f51b56589 fix: lint 2024-03-19 16:49:39 +01:00
kolaente
e940db6d32 fix(views): return only tasks when the bucket id was already specified 2024-03-19 13:55:28 +01:00
kolaente
7368a51f18 fix(views): make setting task position in saved filters work 2024-03-19 00:47:49 +01:00
kolaente
e1774cc49a feat(views): show tasks on kanban board in saved filter 2024-03-19 00:47:49 +01:00
kolaente
7f1788eba9 fix(views): get tasks in saved filter 2024-03-19 00:47:49 +01:00
kolaente
5451ddf58d fix(views): return tasks directly or in buckets, no matter if accessing via user or link share 2024-03-19 00:47:49 +01:00
kolaente
f364f3bec8 feat(views): return position when retriving tasks 2024-03-19 00:47:48 +01:00
kolaente
73e5483e87 fix(views): do not break filters when combining them with view filters 2024-03-19 00:47:48 +01:00
kolaente
ca4e3e01c5 feat(views): recalculate all positions when updating 2024-03-19 00:47:47 +01:00
kolaente
d1d07f462c feat(views): sort tasks by their position relative to the view they're in 2024-03-19 00:47:46 +01:00
kolaente
2502776460 feat(views)!: move task position handling to its own crud entity
BREAKING CHANGE: the position of tasks now can't be updated anymore via the task update endpoint. Instead, there is a new endpoint which takes the project view into account as well.
2024-03-19 00:47:46 +01:00
kolaente
238baf86f7 feat(views)!: return tasks in buckets by view
BREAKING CHANGE: tasks in their bucket are now only retrievable via their view. The /project/:id/buckets endpoint now only returns the buckets for that project, which is more in line with the other endpoints
2024-03-19 00:47:46 +01:00
kolaente
38457aaca5 feat(views): use project id when fetching views 2024-03-19 00:47:46 +01:00
kolaente
98b7cc9254 feat(views): do not override filters in view 2024-03-19 00:47:46 +01:00
kolaente
2096fc5274 feat(views): return tasks in a view 2024-03-19 00:47:46 +01:00
kolaente
6bdb33fb46 feat(views): add new model and migration 2024-03-19 00:47:45 +01:00
kolaente
09d5128050 fix(filters): don't escape valid escaped in queries 2024-03-11 17:02:04 +01:00
kolaente
a66e26678e feat(filters): pass timezone down when filtering with relative date math
Resolves https://community.vikunja.io/t/my-vikunja-instance-creates-tasks-with-due-date-time-of-9am-for-tasks-with-the-word-today-word-in-it/2105/8
2024-03-11 16:28:25 +01:00
kolaente
d0b762d761 docs(filter): add filter query explanation 2024-03-09 19:07:31 +01:00
kolaente
87c027aafd chore(filters): cleanup old variables 2024-03-09 19:06:35 +01:00
kolaente
eebfee73d3 fix(filter): correctly filter for buckets 2024-03-09 19:06:35 +01:00
kolaente
9d3fb6f81d chore(filter): cleanup 2024-03-09 19:06:35 +01:00
kolaente
307ffe11c4 feat(filters): very basic filter parsing 2024-03-09 19:06:31 +01:00
kolaente
7f46914d5e fix(project): pass user id to error message 2024-01-31 13:50:21 +01:00
kolaente
1ed65d306d fix(docs): remove duplicate paths (params) in swagger docs 2023-11-16 13:07:01 +01:00
kolaente
e518fb1191 chore: remove year from copyright headers
Resolves https://kolaente.dev/vikunja/api/pulls/1483
2023-09-01 08:32:28 +02:00
kolaente
010b4ce783 feat(tasks): add searching via typesense 2023-08-28 12:14:50 +02:00
kolaente
895263f054 fix(filters): sorting tasks from filters
Resolves https://community.vikunja.io/t/filter-table-view-not-sorting/1416
2023-06-21 14:59:40 +02:00
kolaente
537ba60f2d fix(tasks): get all tasks from parent projects 2023-05-24 15:51:55 +02:00
kolaente
4c698dc7c7 fix: typo 2023-05-24 15:51:55 +02:00
kolaente
d79c393e5b fix: make it compile again 2023-05-24 15:51:54 +02:00
kolaente
10f71c29b2 fix(saved filters): don't let query parameters override saved sorting parameters
Resolves https://kolaente.dev/vikunja/frontend/issues/3380
2023-04-14 11:01:31 +02:00
kolaente
349e6a5905 feat: rename lists to projects 2023-03-13 14:28:06 +01:00
kolaente
a9e6776abf fix(tasks): allow sorting by task index 2022-11-09 14:43:31 +01:00
konrad
0a1d8c9404 feat: add date math for filters (#1086)
This adds support for relative dates in filters, similar to the ones from [grafana](https://grafana.com/docs/grafana/latest/dashboards/time-range-controls) or [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/common-options.html#date-math).

In short, it allows you to filter for due dates by passing in dates like "now - 7d" to get a date from 7 days ago.

This is a very powerful addition for saved filters as they will allow you to create filters for all kinds of stuff where you previously only could use fixed dates. Now you can for example create a saved filter for "all tasks this week".

Frontend PR: https://kolaente.dev/vikunja/frontend/pulls/1342

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1086
2022-03-27 20:35:04 +00:00
kolaente
57e5d10eee fix: sorting for saved filters
resolves #786
2021-11-14 21:03:55 +01:00
konrad
6ccb85a0dc Reorder tasks, lists and kanban buckets (#923)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/923
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-07-28 19:06:40 +00:00
konrad
466b2b676c Pagingation for tasks in kanban buckets (#805)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/805
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-03-10 10:59:10 +00:00
kolaente
c4a71016b8 Update copyright year 2021-02-02 20:19:13 +01:00