logseq-plugin-task-check-date
logseq-plugin-task-check-date copied to clipboard
Un-completing a task still leaves a link from the original completion date
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