Limits and errors

Write conflicts Edits at once

The person may edit in Xale while you write. Xale's change tools keep what you don't name, check each item where it's written, and refuse a removal that no longer matches its preview.

View as Markdown

Changes read and write together

Changes to Tasks, Projects, Habits and Milestones (and completing a Task) read the item, check it, and write it in one transaction. If the item moved into a kept-away Area meanwhile, it isn't changed: you get "Nothing with that id is available in this Xale." Enforced.

Changes keep what you don't name

ToolRule
xale_update_taskSubtasks are merged by id; ones added meanwhile are kept
xale_change_linksLinks are added and removed, never replaced
xale_update_personLists (relationship types, Areas, groups, other names, emails) are added and removed; notes you send replace theirs
xale_change_people_group_membersMembers you don't name are kept

Send only what to change, never a whole list you read earlier.

Removals match their preview

A confirmed removal does exactly what was previewed. If the item, or a Mindmap branch, changed since:

"Nothing was removed: it changed after the preview. Prepare it again, show the person the new preview, and ask again."

Dated entries

xale_record_entry: "A correction for the same day replaces your latest entry, unless the person has edited that entry in Xale: then theirs is kept and the correction goes after it."

The same requestId, different content

"This requestId was already used for different content with {tool}. Use a new requestId for each new item."

Make a new id for each new item, and reuse one only to retry the same call. See Request ids · safe retries.

Linking a Task to a Mindmap node checks the node as it's written. If it changed: "That Mindmap node changed or was removed while Xale was linking it, so nothing was changed. Read the Mindmap again."

  • Checked against main 8aef9b15

Was this helpful?

write-conflicts-edits-at-once.md · main@c1725f34