bug: Deleting project owner breaks shared project #2827

Closed
opened 2024-11-08 13:53:22 +00:00 by Sterad · 1 comment
Contributor

Description

When deleting a user, their shared projects are not deleted. However, after deletion, an error "Error The user does not exist." is raised regularly when operating on the project, and the Share menu can not be displayed.

I think automatically transfering project ownership on user deletion is the better resolution for this than making projects with deleted owners work nicely, i.e.
https://community.vikunja.io/t/allow-to-transfer-project-to-different-owner/2890/3
While this generally creates the necessity to look for the first user in the first team, to make them owner, it should still be less complex and more intuitive than taking special care of non-existent owners.

I did not try reproducing on the demo site, because I never looked in how to do multi-user testing there.

Vikunja Version

0.24.4

Browser and version

Firefox 131.0.3, Snap on Ubuntu

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

### Description When deleting a user, their shared projects are not deleted. However, after deletion, an error "Error The user does not exist." is raised regularly when operating on the project, and the Share menu can not be displayed. I think automatically transfering project ownership on user deletion is the better resolution for this than making projects with deleted owners work nicely, i.e. https://community.vikunja.io/t/allow-to-transfer-project-to-different-owner/2890/3 While this generally creates the necessity to look for the first user in the first team, to make them owner, it should still be less complex and more intuitive than taking special care of non-existent owners. I did not try reproducing on the demo site, because I never looked in how to do multi-user testing there. ### Vikunja Version 0.24.4 ### Browser and version Firefox 131.0.3, Snap on Ubuntu ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
Sterad added the
kind/bug
label 2024-11-08 13:53:22 +00:00
Owner

Fixed in 4858f7c82f - please check with the next unstable build (should be ready in ~45min).

Fixed in 4858f7c82f82725cfa561fc89a35f6f31404e67c - please check with the next unstable build (should be ready in ~45min).
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vikunja/vikunja#2827
No description provided.