vikunja/pkg
kolaente 62c238e4bc
fix(filter): make sure tasks are in a correct bucket and position when they are part of a date filter
Whenever a task is part of a date filter, it might fall in or out of a filter bucket without anything changing, other than the current time. For example, a filter condition like due_date > now may include different tasks depending on the current time.
For these kinds of tasks to properly show up in the kanban view of a filter, there has to be an entry in the task_buckets table. These entries only got updated when either a task was updated or the filter itself was updated. To account for th changing of time, we also need to check periodically if tasks are now part or not anymore part of that filter.
This change adds a cron task to do precisely that.
We'll have to see if this works resource-wise, but the cron is not the only one doing a bunch of sql queries so it might be fine after all.

Resolves https://community.vikunja.io/t/tasks-in-saved-filter-appear-in-list-view-but-are-not-visible-in-kanban-view/2800

(cherry picked from commit bc52da4029)
2024-09-20 14:27:26 +02:00
..
caldav fix(caldav): make sure colors are correctly saved and returned 2024-09-20 14:22:47 +02:00
cmd fix(deps): update golangci 2024-09-20 14:20:56 +02:00
config feat(teams): add public flags to teams to allow easier sharing with other teams (#2179) 2024-03-10 14:04:32 +00:00
cron chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
db fix(subscriptions): correctly inherit subscriptions 2024-09-20 14:22:33 +02:00
events chore(deps): update golangci-lint rules 2023-12-19 13:34:31 +01:00
files fix(files): use absolute path everywhere 2024-09-20 14:25:02 +02:00
initialize fix(filter): make sure tasks are in a correct bucket and position when they are part of a date filter 2024-09-20 14:27:26 +02:00
integrations chore(web): move web handler package to Vikunja 2024-09-20 14:22:08 +02:00
log chore(mail): update logger to new interface 2024-06-18 12:42:43 +00:00
mail fix(mail): do not fail testmail command when the connection could not be closed. 2024-08-12 20:16:54 +02:00
metrics chore(web): move web handler package to Vikunja 2024-09-20 14:22:08 +02:00
migration fix: add info log message when starting to run migrations 2024-07-05 10:26:26 +02:00
models fix(filter): make sure tasks are in a correct bucket and position when they are part of a date filter 2024-09-20 14:27:26 +02:00
modules fix(files): use absolute path everywhere 2024-09-20 14:25:02 +02:00
notifications fix(notifications): rendering of plaintext mails 2024-04-07 14:12:44 +02:00
red chore: remove year from copyright headers 2023-09-01 08:32:28 +02:00
routes fix(caldav): reject invalid project id with error 400 2024-09-20 14:25:41 +02:00
swagger [skip ci] Updated swagger docs 2024-09-20 14:26:01 +02:00
user fix(user): do not create user with existing id 2024-09-20 14:26:40 +02:00
utils fix(subscriptions): cleanup and simplify fetching subscribers for tasks and projects logic 2024-09-20 14:22:37 +02:00
version fix(build): don't require swagger to build 2023-09-06 21:08:09 +02:00
web chore(web): always set internal error 2024-09-20 14:22:28 +02:00