obsidian-gitlab-issues icon indicating copy to clipboard operation
obsidian-gitlab-issues copied to clipboard

plugin doesn't remove note when criteria does not match anymore

Open matclab opened this issue 3 years ago • 6 comments

My filter is assignee_username=matclab&state=opened, and when I unassigned a gitlab issue, the associated tasks remains in place.

As a side note, I see the following messages in the console when syncing gitlab issues:

Gitlab Issues: File already exists.

matclab avatar Nov 25 '22 12:11 matclab

Please can you specify your operating system and the obsidian version and the plugin version. Thanks.

benr77 avatar Nov 25 '22 13:11 benr77

Also please can you give me the exact title of your Gitlab issue - it's possible any special characters in the title are causing problems.

benr77 avatar Nov 25 '22 13:11 benr77

I'm on Arch linux with obsidian 1.0.3 and plugin 0.1.8.

I remember two issues with the following titles (but since, I've erased the data directory and synced again) :

  • k8s: cex-selector fails: /home/blast is not group writable.
  • k8s: Add FR locales in generated docker.

I tried again by assigning the last one to me, and the unassigning it. The note rests in the gitlab issues directory.

matclab avatar Nov 27 '22 14:11 matclab

Ok so we have : and / in the issue titles which may well be causing invalid filenames.

We rationalise the filenames from the issue titles already, but I'm guessing this is not working fully.

I should have some time tomorrow to look into this further.

benr77 avatar Nov 27 '22 16:11 benr77

I cannot reproduce this issue. Using your example issue titles, I can successfully create and remove notes in Obsidian by changing the issue on Gitlab. I also can't get it to show me the File already exists message during this process.

One point - the notes will only be removed the next time the plugin checks Gitlab, which is automatically 30 seconds after Obsidian starts, followed by every 15 minutes. So the note will only be deleted when the next 15 minute interval expires. I know this sounds obvious but thought I'd best mention it :)

benr77 avatar Nov 28 '22 09:11 benr77

Thank you very much for taking the time to investigate. I'll try to find some time to debug the problem and keep you informed.

matclab avatar Dec 07 '22 09:12 matclab