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

43303 Improve pagination #738

Merged
merged 7 commits into from
May 6, 2024
Merged

43303 Improve pagination #738

merged 7 commits into from
May 6, 2024

Conversation

yeneastgate
Copy link
Contributor

related to #695
changed log:
Improved pagination for multiple pages

Copy link

Pull Request Test Coverage Report for Build 7695323748

  • -10 of 30 (66.67%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 79.487%

Changes Missing Coverage Covered Lines Changed/Added Lines %
plugin/RequestVariablesSanitizer.php 4 5 80.0%
plugin/Controller/SearchParametersModelBuilderEstate.php 2 5 40.0%
plugin/Filter/SearchParameters/SearchParameters.php 3 9 33.33%
Totals Coverage Status
Change from base Build 7408747638: -0.05%
Covered Lines: 7688
Relevant Lines: 9672

💛 - Coveralls

@fredericalpers fredericalpers added this to the v4.21 milestone Jan 30, 2024
@fredericalpers fredericalpers linked an issue Jan 30, 2024 that may be closed by this pull request
2 tasks
@fredericalpers fredericalpers added the QA Issue or Pull request that is in review label Jan 31, 2024
@fredericalpers fredericalpers added the component: property list Issue, Pull Request or Discussion related to property lists label Feb 20, 2024
@fredericalpers fredericalpers modified the milestones: v4.21, v4.20 Feb 23, 2024
@fredericalpers fredericalpers added the deploy test Triggers event to create test version label Apr 30, 2024
Copy link

Steps to install the approved version:

  1. Download onoffice-4.19-4-g83bb06aa-please-unpack.zip from https://github.com/onOffice-Web-Org/oo-wp-plugin/actions/runs/8892188607.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

plugin/Filter/SearchParameters/SearchParameters.php Outdated Show resolved Hide resolved
}
}
return $pagedData;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this function good placed as a public function in RequestVariablesSanitizer? I think we don't need getParameterPage() for other function.
What do you think?
Should we place this code in SearchParametersModelBuilderEstate->addParametersForPagination ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andernath You are correct, currently getParameterPage() is not needed for other functions.

I placed this code in SearchParametersModelBuilderEstate->addParametersForPagination. When placing the code at this will make the code more cohesive and easier to maintain.

@andernath
Copy link
Contributor

@yeneastgate @dai-eastgate
I finished review, please take a look :)

@yeneastgate
Copy link
Contributor Author

@yeneastgate @dai-eastgate I finished review, please take a look :)

@andernath I will check it

@yeneastgate yeneastgate requested a review from andernath May 3, 2024 10:10
Copy link

github-actions bot commented May 6, 2024

Steps to install the approved version:

  1. Download onoffice-4.19-15-g56b20d53-please-unpack.zip from https://github.com/onOffice-Web-Org/oo-wp-plugin/actions/runs/8964181657.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

@andernath andernath merged commit 3b21550 into master May 6, 2024
3 checks passed
@andernath andernath deleted the 43303-improve-pagination branch May 6, 2024 05:38
@andernath andernath mentioned this pull request Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: property list Issue, Pull Request or Discussion related to property lists deploy test Triggers event to create test version QA Issue or Pull request that is in review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve pagination
3 participants