-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix: request samples with default row limit #19456
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! thanks for the fix.
4c12b2f
to
cf1b4e3
Compare
Codecov Report
@@ Coverage Diff @@
## master #19456 +/- ##
=======================================
Coverage 66.58% 66.58%
=======================================
Files 1676 1676
Lines 64176 64181 +5
Branches 6525 6525
=======================================
+ Hits 42732 42737 +5
Misses 19745 19745
Partials 1699 1699
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* fix: request samples with default row limit * lodashLint * fix cypress test (cherry picked from commit d684ad0)
* fix: request samples with default row limit * lodashLint * fix cypress test (cherry picked from commit d684ad0)
* fix: request samples with default row limit * lodashLint * fix cypress test (cherry picked from commit d684ad0)
🏷️ preset:2022.13 |
* fix: request samples with default row limit * lodashLint * fix cypress test
SUMMARY
Currently samples are requested with the original row limit, which tends to be 10k. However, samples should by default return 1k rows. This changes the frontend logic to remove
row_limit
androw_offset
from the requested query object so the backend can use the appropriate defaults. The reason this is done in the frontend is to ensure that it's still possible to paginate samples requests if needed. Also clean up some incorrect types + add__future__
annotations for cleaner python sig types.AFTER
After the change the samples tab only displays 1k rows
BEFORE
Previously it would request 10k rows if the row limit control was set to 10k:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION