Heiss / obsidian-vikunja-plugin

Manage your tasks in vikunja.
GNU General Public License v3.0
2 stars 0 forks source link

Current Issues #13

Open Heiss opened 1 month ago

Heiss commented 1 month ago

date 1.8. v1.0.12

date 8.8. v1.0.14

date 9.8. v1.0.16

date 14.8. v.1.0.17

date 20.8. v.1.0.20

3m0W33D commented 1 month ago

Hi so after playing with it on my end I got some really weird workings on it. Let me give a few scenarios that better explain this weird behaviour I got.

Scenario 1:

  1. Create Task A on Vikunja/Obsidian
  2. Run Sync in Obsidian Task A added to Obsidian/Vikunja
  3. Mark Task A as done on Vikunja
  4. Run Sync again on Obsidian
  5. Task A is shown to have completed in Obsidian

Scenario 2:

  1. Create Task A and B on Vikunja/Obsidian
  2. Run Sync in Obsidian Task A and B added to Obsidian/Vikunja
  3. Mark Task A as done on Vikunja
  4. Run Sync again on Obsidian
  5. Task A becomes marked as not done on Vikunja

Scenario 3:

  1. Create Task A and B on Vikunja/Obsidian
  2. Run Sync in Obsidian Task A and B added to Obsidian/Vikunja
  3. Mark Task A as done on Obsidian
  4. Run Sync again on Obsidian
  5. Task A becomes marked as done on Vikunja

Scenario 4:

  1. Create Task A on Vikunja/Obsidian
  2. Run Sync in Obsidian Task A and B added to Obsidian/Vikunja
  3. Close Obsidan and Reopen(I have the sync on startup enabled)
  4. Mark Task A as done on Vikunja
  5. Run Sync again on Obsidian
  6. Task A becomes marked as not done on Vikunja

While the caching works, I realise it only works for the latest task added and only one task can be added. Any more than that apparently it would prioritize obsidian and overwrite Vikunja which is weird. Save cache to disk frequency is set to 1 for the above scenario Also my local system, is set to same region as Vikunja (so the time should be in sync) System OS: Windows I cant seem to find a way for my Vikunja to sync changes down to obsidian when I haven't touch obsidian note at all(internally or externally). Hope my testing helps! Cheers!

Heiss commented 1 month ago

Okay after some investigations, i found a lot of errors. :) So, i releasing now a new version, which fixes issues in:

Most of your described issues comes from a problem with dataview and it's own index, which must be rebuilt after task changes, but it does not take effect immediatily, so my plugin needs to wait for this. In the meantime the plugin pulls tasks from vikunja and starts syncing ASAP after dataview index-rebuild is done.

3m0W33D commented 1 month ago

Thanks for helping to investigate, I checked notice another new weird corner case for me.

Scenario 5:

Scenario 6:

I am not too clear but it seems that if tasks are done sequentially, after the first update of the markdown in obsidian, it will treat obsidian as the more updated one and overwrite any updates from vikunja. (This is just my theory)

Heiss commented 1 month ago

I cannot reproduce your scenario 5 on my side. If you want faster status sync, use the option in settings to do so. It is faster then a complete sync. :) I found an issue with getting all tasks from vikunja, but should now be fixed. Maybe this was the reason for your scenario?

edit: Okay, i found an issue, what could result in your scenario 5. I am trying to fix it ASAP.

edit2: should be fixed by now, but i will wait with releasing a new version. I want to fix the issue with duplicated labels once and for all.

Heiss commented 1 month ago

I pushed a new version, but had no time to fix duplicated labels.

3m0W33D commented 1 month ago

Weird I am still getting the same result as in this post

Thanks for helping to investigate, I checked notice another new weird corner case for me.

Scenario 5:

  • Create Task A and B on Vikunja/Obsidian
  • Run Sync in Obsidian, Task A and B added to Obsidian/Vikunja
  • Mark Task A as done on Vikunja
  • Run Sync again on Obsidian
  • Task A becomes marked as done in Obsidian (yay! this works!)
  • Mark Task B as done on Vikunja
  • Run Sync again on Obsidian
  • Task B becomes marked as not done in Vikunja

Scenario 6:

  • Create Task A and B on Vikunja/Obsidian
  • Run Sync in Obsidian, Task A and B added to Obsidian/Vikunja
  • Mark Task A and B as done on Vikunja
  • Run Sync again on Obsidian
  • Task A and B becomes marked as done in Obsidian (yay! this works!)

I am not too clear but it seems that if tasks are done sequentially, after the first update of the markdown in obsidian, it will treat obsidian as the more updated one and overwrite any updates from vikunja. (This is just my theory)