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

#26986 REST API Pagination issue #26988

Merged

Conversation

lbajsarowicz
Copy link
Contributor

@lbajsarowicz lbajsarowicz commented Feb 23, 2020

Description (*)

  1. Covered the issue with API Functional Tests
  2. Removed "feature" of overriding currentPage value

Related Pull Requests

Fixed Issues (if relevant)

  1. REST API Pagination Does not work as expected #26986
  2. REST API page size & current page search criteria options return item(s) past end of data set #8099

Manual testing scenarios (*)

N/A (API Functional Tests cover the change)

Questions or comments

Discussed on Slack and GitHub issue

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)

Support

Solving this issue is supported by Mediotype

@m2-assistant
Copy link

m2-assistant bot commented Feb 23, 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

I am not going to fix Semantic Version Checker as I replaced mixed return types to proper ones.

@lbajsarowicz
Copy link
Contributor Author

@magento run all tests

Fixed issue with Test passing by coincidence in MSI repository.

@lbajsarowicz lbajsarowicz changed the title [WIP] #26986 REST API Pagination issue #26986 REST API Pagination issue Feb 23, 2020
@lbajsarowicz
Copy link
Contributor Author

The issues for Functional Tests are actually interesting
image

@lbajsarowicz
Copy link
Contributor Author

@magento run Functional Tests CE, Functional Tests B2B, Functional Tests EE

It's unclear for me how my change affects these tests. Investigating.

@lbajsarowicz
Copy link
Contributor Author

Got it! The solution should be easy to provide.
Will work on it in the morning.

@lbajsarowicz
Copy link
Contributor Author

lbajsarowicz commented Feb 24, 2020

@magento run all tests

Nailed the issue with "results found" in Admin Panel.
The reason for failure was GROUP BY entity_id used in getSelectCountSql.

By the way - the result of entering 999 page is:
image

@lbajsarowicz
Copy link
Contributor Author

@magento run all tests

@sdzhepa sdzhepa linked an issue Feb 24, 2020 that may be closed by this pull request
@lbajsarowicz
Copy link
Contributor Author

@magento run all tests

What is interesting - the solution already worked for MySQL, but ElasticSearch was unaware of PageSize o.O

@magento-engcom-team
Copy link
Contributor

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

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@engcom-Echo
Copy link
Contributor

@magento run all tests

@VladimirZaets VladimirZaets added Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. labels Apr 7, 2020
@VladimirZaets VladimirZaets added this to the 2.4.0 milestone Apr 7, 2020
@magento-engcom-team magento-engcom-team merged commit 7e6ad1d into magento:2.4-develop Apr 10, 2020
@m2-assistant
Copy link

m2-assistant bot commented Apr 10, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Auto-Tests: Covered All changes in Pull Request is covered by auto-tests Award: bug fix Award: category of expertise Award: complex Award: test coverage Component: Catalog Component: Data Component: Elasticsearch 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: S2 Major restrictions or short-term circumventions are required until a fix is available.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REST API Pagination Does not work as expected