obsidian-tasks-group / obsidian-tasks

Task management for the Obsidian knowledge base.
https://publish.obsidian.md/tasks/
MIT License
2.44k stars 228 forks source link

Toggling a task with done date overwrites the done date when toggling task via clicking on the checkbox #3136

Open ilandikov opened 1 day ago

ilandikov commented 1 day ago

Please check that this issue hasn't been reported before.

Steps to reproduce

Expected Behavior

Current behaviour

Which Operating Systems are you using?

Obsidian Version

1.7.4

Tasks Plugin Version

7.11.1+ (d732bbb0)

Checks

Possible solution

This happens in case when in the edit task modal I input the done date to a date previous that today and forget to change the status to done.

claremacrae commented 23 hours ago

I think we need start being smarter about all these consistency checks.

I think it's time to consider stopping fixing these piecemeal, and instead introducing an abstraction for errors and warnings on task date data - and then making the commands, modal and similar, use that abstraction.

So that when we add a new check, all the locations benefit from this simultaneously.

ilandikov commented 10 hours ago

I think this is a great idea!