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

Improve promotion rules names #215

Merged
merged 5 commits into from
Mar 22, 2021

Conversation

luca-landa
Copy link
Contributor

@luca-landa luca-landa commented Mar 19, 2021

PR for #205

I renamed the promotion rules, so that they should be easier to understand both by developers and admin users without more documentation (if you have better names in mind, suggestions are welcome!)

Also, I changed the models paths in a way more consistent to solidus, but I left this refactor in a separate commit since I don't know if there are reasons not to do it that I'm missing.
Anyway, this allowed the deletion of "PromotionRule" from models class names. Since the admin panel always displays their model name humanized as a title (and I found no way around that works), this appeared the only reasonable way to improve their title in the admin panel.

This allows for naming the models in a way more consistent to Solidus
(which doesn't include "PromotionRule" in the name of the class).
Also, it easily allows for the promotion rules to be displayed with a
better name in the admin panel (which just uses the promotions model
name humanized).
This displays a correct description in the admin panel
@aldesantis aldesantis merged commit af29cab into master Mar 22, 2021
@aldesantis aldesantis deleted the luca-landa/improve-promotion-rules-names branch March 22, 2021 14:30
luca-landa added a commit that referenced this pull request Mar 23, 2021
After
#215
update promotion rule names on db to avoid STI errors.
luca-landa added a commit that referenced this pull request Mar 25, 2021
After
#215
update promotion rule names on db to avoid STI errors.
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