Multiple labels with same title (importing via CalDav) #1435

Open
opened 5 days ago by ce72 · 0 comments
ce72 commented 5 days ago

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

### 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_
ce72 added the kind/bug label 5 days ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/api#1435
Loading…
There is no content yet.