logseq-plugin-task-check-date icon indicating copy to clipboard operation
logseq-plugin-task-check-date copied to clipboard

Un-completing a task still leaves a link from the original completion date

Open u3r opened this issue 6 months ago • 0 comments

I recently discovered a bug/missing feature but my understanding of the logseq database is insufficient to fix it myself:

GIVEN a task that changes from uncompleted to completed on Date X WHEN the task is edited into an uncompleted state THEN the time marker should be removed from the block (OK) AND there should be no entry under "linked References" from Date X to the task (NOT OK with version 2.1.0)

https://github.com/DimitryDushkin/logseq-plugin-task-check-date/blob/2.1.0/src/index.ts#L123 is missing some logic to also remove the date reference from the internal database, resulting in

image

u3r avatar Aug 23 '24 11:08 u3r