mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-08-22 12:12:18 -05:00
Switching an existing view to kanban left bucket_configuration_mode at none, so the tasks endpoint returned a flat task list which the frontend rendered as empty bucket columns. The mode is now normalized on create and update: a kanban view without a mode becomes manual, a non-kanban view loses its mode, and an update which omits the mode keeps the stored one together with its bucket configuration. Becoming a manual kanban view seeds the default buckets and backfills task_buckets rows for tasks which have none in that view, so tasks created while the view was of a different kind stay visible. Bucket ids from the request are validated against the view: an id of a bucket which is gone resets to zero instead of locking the view, an id belonging to another view is rejected, and non-kanban views no longer write those columns at all so a round trip can restore them. The backfill selects only task ids, scopes saved filter views to the projects their owner can see, batches its inserts and ignores conflicts with concurrently placed tasks. Fixes https://github.com/go-vikunja/vikunja/issues/3386