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

Remove navigation deep link to promotions #114

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Oct 31, 2024

In the current Solidus main branch, the
Spree::Admin::PromotionsController does not exist anymore if one only requires solidus_core and solidus_backend. It's only present if one requires the full solidus suite with the solidus_legacy_promotions gem.

There's also the new solidus_promotions gem, and now the path to configuring the promotion system depends on the gem being used. By the time we run this code, the promotion system configuration is probably not loaded. Given that we don't do anything with promotions in this gem, let's remove the deep link. Customers can still get at the promotions admin via the navigation in Solidus.

In the current Solidus `main` branch, the
`Spree::Admin::PromotionsController` does not exist anymore if one only
requires `solidus_core` and `solidus_backend`. It's only present if one
requires the full `solidus` suite with the `solidus_legacy_promotions`
gem.

There's also the new `solidus_promotions` gem, and now the path to
configuring the promotion system depends on the gem being used. By the
time we run this code, the promotion system configuration is probably
not loaded. Given that we don't do anything with promotions in this gem,
let's remove the deep link. Customers can still get at the promotions
admin via the navigation in Solidus.
`main` is by definition unstable, let's not test it.
@tvdeyen tvdeyen merged commit 9624072 into AlchemyCMS:main Nov 1, 2024
18 checks passed
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