vikunja/veans/internal/commands
kolaente 7691f282cf fix(veans): preserve unsent task fields on update via PATCH (#2962)
The v1 update was a whole-object POST /tasks/{id}: omitted scalars were
zeroed, so a status-only `veans update` silently wiped a task's
description and priority. The v1->v2 migration replaced that with
PATCH /tasks/{id} carrying a JSON Merge Patch built from only the
changed fields (client.TaskPatch, all-pointer + omitempty), which fixes
this by construction — absent fields are left untouched server-side.

Pin it with the acceptance tests from the issue: a title-only and a
status-only update must send only the field(s) they change, so the
stored description and priority survive.
2026-06-26 11:23:14 +00:00
..
api.go refactor(veans): migrate API client from v1 to v2 2026-06-26 11:23:14 +00:00
claim.go feat(veans): offer "create a new project" from init's picker 2026-05-27 08:21:57 +00:00
create.go feat(veans): offer "create a new project" from init's picker 2026-05-27 08:21:57 +00:00
git.go feat(veans): offer "create a new project" from init's picker 2026-05-27 08:21:57 +00:00
init.go feat(veans): offer "create a new project" from init's picker 2026-05-27 08:21:57 +00:00
labels.go chore(veans): apply veans golangci pass across sources 2026-05-27 08:21:57 +00:00
list.go feat(veans): offer "create a new project" from init's picker 2026-05-27 08:21:57 +00:00
list_test.go feat(veans): offer "create a new project" from init's picker 2026-05-27 08:21:57 +00:00
login.go refactor(veans): migrate API client from v1 to v2 2026-06-26 11:23:14 +00:00
prime.go feat(veans): offer "create a new project" from init's picker 2026-05-27 08:21:57 +00:00
prime_test.go feat(veans): install agent hooks during init instead of just printing 2026-05-27 08:21:57 +00:00
prompt.tmpl feat(veans): install agent hooks during init instead of just printing 2026-05-27 08:21:57 +00:00
root.go feat(veans): install agent hooks during init instead of just printing 2026-05-27 08:21:57 +00:00
runtime.go feat(veans): make the HTTP client timeout configurable via .veans.yml 2026-05-27 08:21:57 +00:00
show.go feat(veans): install agent hooks during init instead of just printing 2026-05-27 08:21:57 +00:00
update.go refactor(veans): migrate API client from v1 to v2 2026-06-26 11:23:14 +00:00
update_test.go fix(veans): preserve unsent task fields on update via PATCH (#2962) 2026-06-26 11:23:14 +00:00