thesamim / TickTickSync

GNU General Public License v3.0
140 stars 8 forks source link

it kept adding #ticktick tag to tasks which lead to 86000+ tags added to only 260 tasks. #182

Open parthvzala opened 1 day ago

parthvzala commented 1 day ago

Describe the bug I selected full vault sync and it started processing. It was still processing after almost 18 hours, and continuously showing a notification stating "New task will be added on the next sync.". Obsidian was lagging to open a file that has a filter to show all the tasks in the vault. I noticed #ticktick tag was applied to old completed tasks, thousands of times. image

image

To Reproduce Not sure, but this is what I did.

  1. Tried to login using username and password which failed with 429 error code.
  2. Used cookie token to login.
  3. Started sync.
  4. That showed error stating project inbox not found.
  5. changed the location in vault where plugin will save tasks from ticktick but didn't use "+" button so it went back to using root of vault to store files.
  6. Started sync after 5 and did it multiple times until I realized I have to press button next to the text box to apply change.
  7. Change path successfully using the button and started sync.
  8. Changed Project/List where this plugin will push all the tasks on ticktick.
  9. Changed it twice.

I was just trying to run it to understand how it works and how well it works. I use github to sync so I had no trouble restoring the files but for someone using cloud storage this will be almost impossible to fix or really time consuming to fix.

Expected behavior

  1. Tag added only one time to a task.
  2. There should be an option to turn off tags and or what tag to use.

Screenshots Added above.

**Set up questions:

Desktop (please complete the following information):

Smartphone (please complete the following information):

thesamim commented 16 hours ago

I'm so sorry. This was an old bug, and I thought it was fixed. I'll debug once we're past the 429 errors....

In the mean time, if this messed up your ticktick, there should be a back up file in the root of your vault folder. To check to make sure it's as you expect it, but you should be able to delete tasks in ticktick and import from the CSV.

thesamim commented 2 hours ago

@parthvzala : I've just retested full vault sync. And reproduced your conditions, namely: limiting tasks to a folder AND enabling full vault sync. It's all working as expected. Meaning that all tasks in any file in that folder were added correctly. Did not see the repetition of the ticktick as you did.

Please start over, paying attention to click the + sign when changing the folder and retest. Let me know what happens.