Mapping a page writes the project's existing todos onto it #77
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/rm-analyzer#77
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #51 (todo sync).
Today, mapping a page to a Vikunja project doesn't seed anything: only tasks created in the app after the mapping are written onto the page (
PollWorker.new_in_app?/2). Jeremy wants the page and the project as 1:1 as possible, so linking a page should bring the project's existing todos onto it.What changes
On a new mapping (not a same-project remap that keeps its rows, D54), once the page's current text has been read:
Todos.Match.normalize/1) is linked to that task: no new task in the app, no new line on the page (D67). Each task is matched at most once.:add, and WriteBack writes them onto the page's free rows in the app's order.page full, N not written.Done when