Repository navigation
feat(app): delete a todo 40 minutes in Done (0.10.1) - #35
Merged
Merged
Conversation
A todo in Done now keeps when it went there, in a new done_at column of the todo file (schema 2). The window deletes the todos 40 minutes or more in Done on its alert tick, every 30 seconds and once at start, and cancels the alert set on each; nothing of them is kept. Leaving Done stops the 40 minutes, and going back starts them over. A todo already in Done in a file from 0.10.0 gets its 40 minutes from the first tick, and that time is saved, so a restart does not start them over. The todo dialog's note says todos are kept until 40 minutes in Done, and its picture is retaken.
Bringing a 0.9.0 or 0.10.0 todo file to the new schema writes to it. A file that cannot be written (read-only, a full disk) now opens read-only at its own schema, with its todos, and the Activity says they are not being saved, and why, as before; until then it opened empty. A time in Done ahead of the clock, as a clock set back leaves, counts from now. secure_delete is on, so a deleted todo leaves no text of it in the file. The changelog says the 40 minutes go on while TasksPending is closed, and that 0.9.0 and 0.10.0 open the new file read-only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A todo 40 minutes in Done is deleted, and nothing of it is kept. The 0.10.1 cut is on top.
done_atcolumn (schema 2, a new entry at the end ofMIGRATIONS). Going to Done sets it, leaving Done clears it, and moving a todo to Done while it is there keeps it.Session::expire_todos). The 40 minutes go on while TasksPending is closed.secure_deleteis on, so a deleted todo leaves no text in the file.Verification
make ci-checkpasses on the branch head: 583 tests, against 573 on 0.10.0.session: the 40-minute boundary and the alert; the count from going to Done; the time kept across a restart; an undated todo from an older file; a time ahead of the clock; an old file that cannot be updated;todo_store:done_atkept; a first-schema file migrated; a first-schema file read-only; a deleted todo leaving no text.faa659c:secure_delete.ui/mod.rshave no test, as with the rest of the GTK code. The deletion has not yet been watched live through a 40-minute wait.Checklist
docs/operations.md,docs/architecture.md,AGENTS.md, the window'sDESIGN.md, the README's alt text, the changelog and the pictures.)make ci-checkpasses locally.