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

Issue 48715: Limit Data Region "Show all" to a maximum number of rows #5067

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

labkey-nicka
Copy link
Contributor

@labkey-nicka labkey-nicka commented Dec 19, 2023

Rationale

This addresses Issue 48715 by switching "Show all" functionality in Data Regions to set a maxRows=5000 parameter instead of setting showRows=all. The intention is to a) avoid unwieldy large requests generated by our UI that can consume significant server resources and b) avoid crashing the user's browser attempting to render too many results. This is a client-side change only (so showRows=all is still supported but just not generated by our UI).

Related Pull Requests

Changes

  • Switch selecting "Show all" or calling DataRegion.showAllRows() to setting the URL parameter maxRows=5000 instead of showRows=all
  • Display a message to the user iff the "Show all" max rows boundary is selected and has been reached.

@labkey-nicka labkey-nicka merged commit 54e372f into develop Dec 20, 2023
2 checks passed
@labkey-nicka labkey-nicka deleted the fb_data_region_48715_2 branch December 20, 2023 05:18
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