Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore task purge support #3399

Open
huantrinh1802 opened this issue Apr 23, 2024 · 3 comments
Open

Restore task purge support #3399

huantrinh1802 opened this issue Apr 23, 2024 · 3 comments
Milestone

Comments

@huantrinh1802
Copy link

huantrinh1802 commented Apr 23, 2024

  • What command(s) did you run?
    task status:deleted purge
  • What did you expect to happen?
    In v2.x, it works. In v3, it prints out
Deleted tasks are removed from the task list automatically after they expire
  • Why I need this?

    • I am writing a neovim plugin for interacting with Taskwarrior so I often create dummy tasks to test.
    • Often I make a mistake, I will delete the task then reuse the previous command with correct info
    • It would be great to not see the deleted ones when running all report :)
@djmitche
Copy link
Collaborator

At the moment, expiration occurs automatically at 180 days after the last modification of a task.

Deletion is a little bit risky from the perspective of the sync model -- if there's another replica out there with changes to the deleted task, the task will end up out-of-sync between the two replicas -- but that's a tolerable risk when testing, for example. So, maybe we can add that support with that caveat documented somewhere.

@djmitche djmitche changed the title What is the alternative for purging the deleted tasks in v3? Or how does it work in v3? Restore task purge support Apr 25, 2024
@djmitche
Copy link
Collaborator

This will require GothenburgBitFactory/taskchampion#383

@CorentinJ
Copy link

In testing some scripts I generated over 1,000 tasks. I deleted them, but they still clutter the database and make debugging harder. I would love to have a command to effectively remove them entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

3 participants