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

Convert page URL parameters to integers on search page. #940

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

newswangerd
Copy link
Member

@newswangerd newswangerd commented Jul 20, 2018

@newswangerd newswangerd requested a review from chouseknecht July 20, 2018 18:07
@akaRem
Copy link
Contributor

akaRem commented Jul 23, 2018

If someone will make mistake during copy-paste or editing url, pageSize may become 0, NaN or too big. Could you add crsp checks and fixes to such incorrect data?

add extra data validatation to search URL params
@newswangerd newswangerd force-pushed the search-pagination-sneakiness branch from 9d7aaf3 to 6bc2db9 Compare July 23, 2018 20:06
@newswangerd
Copy link
Member Author

Unfortunately we can't really validate pageSize because we don't know what the size of the page is until after the query is executed. I added some basic type validation and an error message if the page size is out of bounds.

@newswangerd newswangerd merged commit 52d53e0 into ansible:devel Jul 25, 2018
@newswangerd newswangerd deleted the search-pagination-sneakiness branch August 23, 2018 12:20
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.

3 participants