Multiple labels with same title (importing via CalDav) #1435
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1435
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Importing CalDav Categories seems to always create new labels, even if a label with the same title exists already for the current user.
Maybe (but I am not very sure) the reason labels from CalDAv are replicated is in https://kolaente.dev/vikunja/api/src/branch/main/pkg/routes/caldav/listStorageProvider.go#L420. labels that are returned from
vTask.Update()
don't have their id filled in. So comparing by ids cannot work.But why should we have the same label title multiple times at all?
Vikunja Frontend Version
vikunja/frontend:0.20.5
Vikunja API Version
vikunja/api:0.20.4
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
There might be cases where you get access to a label via a shared task after you already created one with the same name yourself.
Okay, I understand.
After stepping through it and few tests, I think that the following quick fix might already help:
That sounds like it could work.
Did not mean to close this, but I've created a PR which (when being merged) closes this issue.