Files
pad/internal/server
xarmian 1d9a611508 feat(api): bulk restore op for undo (TASK-1674 backend) (#675)
Add a 'restore' verb to the bulk endpoint so an undo of a bulk archive
is one call. The loop resolves include-deleted for restore (archived
rows are hidden from ResolveItem); applyBulkOp calls store.RestoreItem,
mapping UNIQUE-constraint races to a conflict and sql.ErrNoRows to
not-found, and logging action="restored". Also make
ResolveItemIncludeDeleted UUID-aware (mirrors ResolveItem) so restore
resolves by the ids the bulk response returns.

Adds 'restore' to the TS BulkItemOp / BulkItemsRequest union and a Go
test (archive → restore round-trip by id).
2026-05-30 22:28:34 -04:00
..