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

improvement: Ensure jobs per page has a max of 50 #613

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

tayclark
Copy link
Contributor

@tayclark tayclark commented Jul 26, 2023

The InputField max doesn't prevent someone from inputting a higher value, it only limits how high the component will let you click the up arrow. Since a large page size w/ continuous polling on an open window could cause issues the jobs per page configuration will now be capped at 50 if an input > 50 is provided

@felixmosh
Copy link
Owner

Hi, thank you for this PR.

I think that instead of adding an additional config, it is better to solve the max issue, it can be done by limiting num of chars or even with a verification of the max number, WDYT?

@tayclark tayclark changed the title feat: Add showJobsPerPage UI Config option improvement: Ensure jobs per page has a max of 50 Jul 26, 2023
@tayclark
Copy link
Contributor Author

Hi @felixmosh. Yea, that works. I've updated the PR

@felixmosh felixmosh merged commit c3435dd into felixmosh:master Jul 26, 2023
@felixmosh
Copy link
Owner

Thanx for the change ,🙏🏼

@felixmosh
Copy link
Owner

Released in v5.7.1

@tayclark
Copy link
Contributor Author

Thanks again @felixmosh !

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.

2 participants