Skip to content

Fix scheduled date handling in recurring tasks#4144

Merged
djmitche merged 2 commits into
GothenburgBitFactory:developfrom
ashprice:develop
Jul 19, 2026
Merged

Fix scheduled date handling in recurring tasks#4144
djmitche merged 2 commits into
GothenburgBitFactory:developfrom
ashprice:develop

Conversation

@ashprice

@ashprice ashprice commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Subset from PR #3006 without the changes to until.

Closes #2414, #97, #3823, part of #1534.

#1983 is mostly covered by until by using until:now+someperiod or until:date, the main thing missing there would be until:some-task-count. I could probably implement that behaviour, but I think it might be better to wait for iterative tasks to land?

The "scheduled" attribute of tasks generated by recurring tasks is now
updated the same way the "wait" attribute is handled.

The difference between the original "scheduled" and "due" dates is
added to the "due" date of each generated task when a "scheduled" date is
present.
@ashprice ashprice changed the title Scheduled attribute updated in handleRecurrence. Fix scheduled date handling in recurring tasks Jul 13, 2026
Signed-off-by: ashprice <gitcommit1@sl.ashprice.co.uk>
@ashprice

Copy link
Copy Markdown
Contributor Author

Didn't look at the current state close enough and missed that. Sorry!

@ashprice

Copy link
Copy Markdown
Contributor Author

Not sure of the cause of the failing test. I can't recreate it...

@djmitche

Copy link
Copy Markdown
Collaborator

It's quite possible that was an intermittent failure -- that test seems a little suspect. I've re-run it!

@djmitche
djmitche self-requested a review July 19, 2026 16:47
@djmitche

Copy link
Copy Markdown
Collaborator

Green!

@djmitche
djmitche merged commit e0bd13c into GothenburgBitFactory:develop Jul 19, 2026
26 of 27 checks passed
@ashprice

Copy link
Copy Markdown
Contributor Author

Great!

This change should probably be accompanied by a PSA and a news announcement in the next release, because it will likely break hooks that people have used to address the inconsistency.

@djmitche

Copy link
Copy Markdown
Collaborator

This change should probably be accompanied by a PSA and a news announcement in the next release, because it will likely break hooks that people have used to address the inconsistency.

We actually have a "news" feature for that -- src/commands/CmdNews.cpp. I just pushed a commit with a comment in that file (I meant to make a PR, oops!).

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.

Dates not understood the same way between recurrent task creation & parent task modification

3 participants