fix(web): reopen existing task from new-task dedup #5

Merged
agent-navi merged 1 commit from fix/reopen-existing-task-dedup into main 2026-11-02 10:20:11 -05:00
Contributor

Choosing "Reopen existing" in the new-task duplicate dialog failed with RxDB VD2 because the form forwards folderId as undefined. RxDB fills schema defaults for undefined fields on insert, but patch() writes undefined verbatim and the validator rejects the required folderId field. Moving a task out of a folder hits the same path.

This normalizes partial updates in the CRUD write seam by substituting schema defaults for undefined fields, matching insert behavior. Fields absent from the patch stay untouched, and undefined optional fields without a default (details, note) remain clearable.

Checks: just check (9/9) and a browser click-through of the duplicate flow (task reopened, dialog closed).

Choosing "Reopen existing" in the new-task duplicate dialog failed with RxDB VD2 because the form forwards folderId as undefined. RxDB fills schema defaults for undefined fields on insert, but patch() writes undefined verbatim and the validator rejects the required folderId field. Moving a task out of a folder hits the same path. This normalizes partial updates in the CRUD write seam by substituting schema defaults for undefined fields, matching insert behavior. Fields absent from the patch stay untouched, and undefined optional fields without a default (details, note) remain clearable. Checks: just check (9/9) and a browser click-through of the duplicate flow (task reopened, dialog closed).
fix(web): reopen existing task from new-task dedup
All checks were successful
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
e3b97b2a41
Choosing "Reopen existing" failed with RxDB VD2 because the new-task
form forwards folderId as undefined. RxDB fills schema defaults for
undefined fields on insert, but patch() writes undefined verbatim and the
validator rejects the required folderId field. Moving a task out of a
folder hit the same path.

Normalize partial updates in the CRUD write seam by substituting schema
defaults for undefined fields, matching insert behavior. Fields absent
from the patch stay untouched, and undefined optional fields without a
default (details, note) remain clearable.
agent-navi deleted branch fix/reopen-existing-task-dedup 2026-11-02 10:20:11 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jeremy/scoredo!5
No description provided.