-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Promotion rule product limit improvements #3934
Promotion rule product limit improvements #3934
Conversation
let me know if I have to squash or reformulate the commit messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hey Monica!
This looks great, thanks. 🙏 Please, can you squash commits into a single one?
sure, on it! |
remove per_page param from product listing for admin search in backend
c002e2d
to
6aa7c0c
Compare
@kennyadsl do I need to do anything else? |
Nope, this is good thanks. We will wait for the next release before merging this. Going to add the right labels/milestone so it's clear for everybody. Thanks again! 🙏 |
end | ||
end | ||
|
||
context 'when a per page limit is not set' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me that this context
expectations are the same as the context
above, only the params
are slightly different, so it's not evident to me what difference in result the different params should produce... so I'm missing the reason for this second test 😅. Can you help me with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is basically testing that, no matter which per_page
you are requesting, when there's the show_all
option it will return all the records, ignoring the per_page
param. Makes sense @spaghetticode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kennyadsl sure... thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Monica!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nirnaeth thank you 👍
Description
Ref #3902
Adding a further parameter
show_all
to theselect2
rule when picking products in the admin interface.The parameter should act only when the selection is initialized at page load and should not have an impact on the product drop-down.
Now the promotion rule section for products should properly show all products associated with the rule and not just up to a certain limit as described in #3902 .
Screenshots
With 8 products associated to the rule:
Before
After
Checklist:
Credits
@aldesantis for the lead