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

#27089 Fix issue with returning non-available default limit #27093

Conversation

lbajsarowicz
Copy link
Contributor

Description (*)

Fix issue related with returning default value of Limit that is not available

Related Pull Requests

Fixed Issues (if relevant)

  1. BUG: getDefaultLimitPerPageValue returns value that is not available #27089

Manual testing scenarios (*)

N/A

Questions or comments

N/A

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Feb 29, 2020

Hi @lbajsarowicz. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@lbajsarowicz
Copy link
Contributor Author

@ihor-sviziev We need manual approval for Semantic Version Checker, as I just fixed the return types for methods, from invalid ones. Static Tests fixed.

@ihor-sviziev
Copy link
Contributor

Waiting for approval for SVC failure

@lenaorobei lenaorobei added Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: bug fix Award: test coverage labels Mar 10, 2020
@lenaorobei
Copy link
Contributor

Approval request in progress MC-32331.

@ihor-sviziev
Copy link
Contributor

@lenaorobei still no updates in approval process?

@magento-engcom-team
Copy link
Contributor

Hi @lenaorobei, thank you for the review.
ENGCOM-7453 has been created to process this Pull Request

@engcom-Alfa
Copy link
Contributor

engcom-Alfa commented Apr 22, 2020

✔️ QA Passed

Case 1. Grid Mode

Manual testing scenario:

  1. Change catalog/frontend/grid_per_page_values to 1,2,5 using CLI
    (Run in console: php bin/magento config:set catalog/frontend/grid_per_page_values 1,2,5);
  2. Change catalog/frontend/grid_per_page to 12
    (Run in console: php bin/magento config:set catalog/frontend/list_per_page 12);
  3. Get the value of catalog/frontend/grid_per_page_values in your Template

Before:
✖️ getDefaultLimitPerPageValue('grid') returns 12

After:
✔️ getDefaultLimitPerPageValue('grid') returns the lowest of the acceptable values 1

Case 2. List Mode

Manual testing scenario:

  1. Change catalog/frontend/list_per_page_values to 3,7,9,13 using CLI
    (Run in console: php bin/magento config:set catalog/frontend/list_per_page_values 3,7,9,13);
  2. Change catalog/frontend/list_per_page to 11
    (Run in console: php bin/magento config:set catalog/frontend/list_per_page 11);
  3. Get the value of catalog/frontend/list_per_page_values in your Template

Before:
✖️ getDefaultLimitPerPageValue('list') returns 11

After:
✔️ getDefaultLimitPerPageValue('list') returns the lowest of the acceptable values 3

@engcom-Echo
Copy link
Contributor

SVC failure was approved.

@okorshenko
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @okorshenko. Thank you for your request. I'm working on Magento 2.4-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @okorshenko, here is your Magento instance.
Admin access: https://i-27093-2-4-develop.instances.magento-community.engineering/admin_b727
Login: 1e3133f8 Password: a673e4b788bb
Instance will be terminated in up to 3 hours.

@okorshenko
Copy link
Contributor

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @okorshenko. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @okorshenko, here is your new Magento instance.
Admin access: https://pr-27093.instances.magento-community.engineering/admin_c4f3
Login: ec9c82ce Password: f831b5cd3120
Instance will be terminated in up to 3 hours.

@slavvka slavvka added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Severity: S1 Affects critical data or functionality and forces users to employ a workaround. Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. and removed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. labels Apr 22, 2020
@magento-engcom-team magento-engcom-team merged commit c4ec8e4 into magento:2.4-develop Apr 25, 2020
@m2-assistant
Copy link

m2-assistant bot commented Apr 25, 2020

Hi @lbajsarowicz, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: bug fix Award: test coverage Component: Catalog Partner: Mediotype partners-contribution Pull Request is created by Magento Partner Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: accept Release Line: 2.4 Severity: S1 Affects critical data or functionality and forces users to employ a workaround.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: getDefaultLimitPerPageValue returns value that is not available
8 participants