Commit Graph

90 Commits

Author SHA1 Message Date
kolaente
22fc19cd24 fix: ignore filter_include_nulls from views
The filter_include_nulls property from the filter in a view would override the property set through the query string. Because we don't have a way in the UI to set this for filters in views, this makes the setting pretty opaque and unpredictable. Since we want to remove the nulls option anyways, we can just ignore it here.

Resolves https://github.com/go-vikunja/vikunja/issues/1781
2025-11-11 11:04:33 +01:00
kolaente
a81a3ee0e5 feat!: rename right to permission (#1277) 2025-08-13 11:05:05 +02:00
kolaente
53264d350e fix(kanban): make bucket query fixed per-view (#1007) 2025-06-25 11:38:24 +00:00
Dominik Pschenitschni
296577a875 fix: correct license header references (#882)
See originals:
- https://www.gnu.org/licenses/agpl-3.0.txt
- https://www.gnu.org/licenses/gpl-3.0.txt
2025-06-10 12:18:38 +02:00
kolaente
ef01c2217b fix(task): correctly validate all task fields 2025-01-25 14:38:25 +01:00
kolaente
9aa197b196 fix: swagger docs 2025-01-24 14:20:07 +01:00
kolaente
6b7c3ffef3 feat(tasks): add parameter to expand comments on a task 2025-01-24 13:00:06 +01:00
kolaente
e887cdeb5e feat(task): expand reactions via parameter 2025-01-24 11:39:51 +01:00
kolaente
333e35e648 feat: add expand property to read one task 2025-01-24 11:20:23 +01:00
kolaente
7f6cb1e06e feat: expand buckets 2025-01-24 11:03:40 +01:00
kolaente
bc0c0b103f feat: validate expand api parameter 2025-01-24 10:09:36 +01:00
kolaente
debdcd4dd3 docs: clarify return value of /tasks 2025-01-20 16:23:26 +01:00
kolaente
a7be41ef04 fix(filter): do not override filter include nulls query
This fixes a bug where the "include nulls" query parameter would get overridden when the current view had a filter set, even if that filter didn't specify the parameter.
2025-01-20 14:23:35 +01:00
kolaente
7ac2c42e4d fix(caldav): fetch saved filter
This fixes a bug which caused fetching saved filter and favorite projects to crash, because the respective project ID is not a valid project id without special handling.
2024-12-11 17:05:51 +01:00
kolaente
bbbd936868 fix(saved filters): check permissions when accessing tasks of a filter 2024-11-21 15:42:26 +01:00
kolaente
f2eac4623d fix(filters): do not crash when paginating bucket with empty filter
Resolves https://community.vikunja.io/t/error-in-kanban-view-of-virtual-project-saved-filter/2876/7
2024-11-19 19:32:09 +01:00
kolaente
d616bab76d fix(views): enable search in bucket filters 2024-11-19 16:27:22 +00:00
kolaente
624907ad6a fix: make search in saved filter work 2024-11-19 16:27:22 +00: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