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

Refactor Expire Tasks #510

Merged
merged 3 commits into from
Dec 22, 2024
Merged

Refactor Expire Tasks #510

merged 3 commits into from
Dec 22, 2024

Conversation

aricursion
Copy link
Contributor

I wrote a small patch to address #436. This is my first PR so I'm not sure if I did it correctly, but it seems to pass all of the tests?

@aricursion aricursion requested a review from djmitche as a code owner December 21, 2024 22:20
@aricursion
Copy link
Contributor Author

I PR'ed the wrong clone... 🤦

@aricursion aricursion closed this Dec 21, 2024
@aricursion aricursion reopened this Dec 21, 2024
Copy link
Collaborator

@djmitche djmitche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Thanks!

@djmitche djmitche linked an issue Dec 22, 2024 that may be closed by this pull request
@djmitche djmitche merged commit c168d2c into GothenburgBitFactory:main Dec 22, 2024
16 checks passed
.drain()
.filter(|(_, t)| t.get_status() == Status::Deleted)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no -- this line should not have been removed! We're now expiring all old tasks, whether deleted or not!

djmitche added a commit to djmitche/taskchampion that referenced this pull request Jan 6, 2025
In GothenburgBitFactory#510, a bug was introduced where _any_ old tsaks would be purged, not
just deleted tasks.
djmitche added a commit to djmitche/taskchampion that referenced this pull request Jan 6, 2025
In GothenburgBitFactory#510, a bug was introduced where _any_ old tasks would be purged, not
just deleted tasks.
djmitche added a commit that referenced this pull request Jan 6, 2025
* Only expire deleted tasks.

In #510, a bug was introduced where _any_ old tasks would be purged, not
just deleted tasks.

* avoid repeating the string 'deleted'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use all_task_data in Replica::expire_tasks
2 participants