Skip to content
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

Furniture: Destroying a Furniture respects dependent: settings #1074

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

zspencer
Copy link
Member

#709

When we were smoke-testing the Marketplace, I realized we had to destroy and re-create the Marketplace, but the way we delete them was... uhhh not respecting the (very prudent) foreign-keys we had added!

So now FurniturePlacements polymorph into their child implementation prior to destruction, so that all dependent: :destroy etc. actions get carried out.

Co-authored-by: Dalton [email protected]

#709

When we were smoke-testing the Marketplace, I realized we had to destroy
and re-create the Marketplace, but the way we delete them was... uhhh
not respecting the (very prudent) foreign-keys we had added!

So now FurniturePlacements polymorph into their child implementation
prior to destruction, so that all `dependent: :destroy`  etc. actions
get carried out.

Co-authored-by: Dalton <[email protected]>
@zspencer zspencer requested review from anaulin, KellyAH and a team January 26, 2023 01:46
Copy link
Member

@anaulin anaulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@zspencer zspencer merged commit 6fe3964 into main Jan 26, 2023
@zspencer zspencer deleted the furniture/destroy-placements-as-their-child branch January 26, 2023 02:29
@zspencer zspencer added this to the 1.0 - Andromeda milestone May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants