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

Fix property destroy - use destroy instead of discard #5577

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

tonxyx
Copy link
Contributor

@tonxyx tonxyx commented Dec 29, 2023

As the Spree::Property object is not discardable, use the default destroy_all method

Fixes #5576

@tonxyx tonxyx requested a review from a team as a code owner December 29, 2023 16:59
@@ -6,19 +6,19 @@
before { sign_in create(:admin_user, email: '[email protected]') }

it "lists properties and allows deleting them" do
create(:property, name: "Type", presentation: "Type")
create(:property, name: "Type prop", presentation: "Type prop")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed "Type" to "Type prop" because of text Option types" used for the menu item which test recognizes as non deleted.

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@kennyadsl
Copy link
Member

@elia @rainerdema I think we need to backport this to 4.3, adding the appropriate label.

@kennyadsl kennyadsl added the backport-v4.3 Backport this pull-request to v4.3 label Jan 2, 2024
@elia elia added backport-v4.3 Backport this pull-request to v4.3 and removed backport-v4.3 Backport this pull-request to v4.3 labels Jan 2, 2024
@elia elia merged commit 8411f05 into solidusio:main Jan 2, 2024
16 checks passed
Copy link

github-actions bot commented Jan 2, 2024

💚 All backports created successfully

Status Branch Result
v4.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@elia
Copy link
Member

elia commented Jan 2, 2024

@kennyadsl I just realized the PR is for solidus admin only, meaning that we don't need the back port since we can release independently.

@kennyadsl kennyadsl removed the backport-v4.3 Backport this pull-request to v4.3 label Jan 2, 2024
@tonxyx tonxyx deleted the fix-property-destroy branch January 2, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Admin] Undefined destroy method call on non soft deletable Spree::Property
4 participants