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

[v4.4] [FIX] A few small tweaks for the new promotion admin #6021

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Dec 6, 2024

Backport

This will backport the following commits from main to v4.4:

Questions ?

Please refer to the Backport tool documentation

This helps fix an issue when creating a new promotion with a single
code. Without the inverse_of parameter, our associated codes won't
correctly infer that they're associated to a new promotion and will
generate undefined method for nil errors.

Co-authored-by: Alistair Norman <[email protected]>
(cherry picked from commit 2cb9ac1)
Unfortunately, our resource controller is hardcoded to look for a
`Spree::<model_name>` object, which obviously doesn't work with the new
promotion namespace.

Co-authored-by: Alistair Norman <[email protected]>
(cherry picked from commit 6ea8b43)
@github-actions github-actions bot requested a review from a team as a code owner December 6, 2024 13:26
@github-actions github-actions bot added the changelog:solidus_promotions Changes to the solidus_promotions gem label Dec 6, 2024
@tvdeyen tvdeyen enabled auto-merge December 6, 2024 13:46
@tvdeyen tvdeyen disabled auto-merge December 6, 2024 15:09
@tvdeyen tvdeyen merged commit 816bc66 into v4.4 Dec 6, 2024
11 of 12 checks passed
@tvdeyen tvdeyen deleted the backport/v4.4/pr-5953 branch December 6, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_promotions Changes to the solidus_promotions gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants