-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: delete configured computers #5397
fix: delete configured computers #5397
Conversation
Deleting a configured computer resulted in an error, since the associated Authinfo object was not deleted (instead, the "dbcomputer_id" was set to null, which violated a not-null constraint). Deleting computers was already tested, but not deleting a configured computer. This is fixed as well.
@chrisjsewell Seems like the deletion test passes now. Do I need to write a migration here? |
No, relationships are at the ORM level (client-side), i.e. transient and not part of the database schema Might be good to add two tests to |
While looking into this, I realized that there actually is no If not should I be adding it in this PR? |
Not on the front-end (i.e. in I guess thats a bit of a wider discussion than this PR 😬 |
Ok, then I guess it's enough if I add a test that deleting a computer also deletes the authinfo and leave the test deleting a user for another time. |
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers
fix #5396
Deleting a configured computer resulted in an error, since the
associated Authinfo object was not deleted (instead, the "dbcomputer_id"
was set to null, which violated a not-null constraint).
Deleting computers was already tested, but not deleting a configured
computer. This is fixed as well.