You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2020. It is now read-only.
I have a user who was an admin on our cluster and had pushed to multiple apps that he was not the owner for.
After transferring ownership of the apps that he owns to another user, I get the following when trying to delete him.
$ deis auth:cancel --username=someuser cancel account someuser at https://deis.mycluster.com? (y/N): y Error: Unknown Error (409): {"detail":"(\"Cannot delete some instances of model 'User' because they are referenced through a protected foreign key: 'Release.owner'\", <QuerySet [<Release: some-app-v7>, <Release: another-app-v10>]
The text was updated successfully, but these errors were encountered:
Oops, sorry for not including that. I am on v2.11.0. I did deis apps:transfer for the apps that he owned but the releases he is attached to otherwise are apps he had deployed to but did not actually own.
As a workaround, I was able to to transfer those specific apps over to the user I want to delete and then back. This updated the release objects to now be owned by the correct user and I was able to delete the user in question.
I am not sure how better to handle the case where a user owns releases for an application but not the application itself, but it does seem like it may need some thought.
I have a user who was an admin on our cluster and had pushed to multiple apps that he was not the owner for.
After transferring ownership of the apps that he owns to another user, I get the following when trying to delete him.
$ deis auth:cancel --username=someuser cancel account someuser at https://deis.mycluster.com? (y/N): y Error: Unknown Error (409): {"detail":"(\"Cannot delete some instances of model 'User' because they are referenced through a protected foreign key: 'Release.owner'\", <QuerySet [<Release: some-app-v7>, <Release: another-app-v10>]
The text was updated successfully, but these errors were encountered: