-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
chore: SQLLab row limit warning using Alert component #14298
Conversation
1f905d5
to
09f61b9
Compare
Codecov Report
@@ Coverage Diff @@
## master #14298 +/- ##
=======================================
Coverage 76.93% 76.93%
=======================================
Files 954 954
Lines 48070 48071 +1
Branches 5973 5974 +1
=======================================
+ Hits 36982 36983 +1
- Misses 10886 10891 +5
+ Partials 202 197 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
@zuzana-vej there were 2 states we looked at when designing this message. First was a general limit indicator that is supposed to give non disruptive feedback to the user that x amount of rows were returned based on a limit constraint they applied in the UI somewhere (sql or dropdown). The second state is when a limit was applied based on a limit constraint configured on the server side (something a non admin could not see in the UI). For this state an alert was used to bring attention to the user that if they are seeing a row llimit that isnt shown in the UI its because of a configuration on the server side. hence the alert state (and improved copy you suggested in a previous issue). |
I agree that sometimes limit is intentional and then it shouldn't be a warning. However the 1000 limit is default, many users don't realize this, and they query the data, sort through the displayed table not seeing what expected, or they download to CSV only to realize that they only downloaded 1000 records and they need to rerun the query again. Based on this user feedback, when the 1000 limit was applied due to the default dropdown it should be a warning. If there is N rows displayed because the query simply just returned 345 records, then I agree it shouldn't be a warning. |
Understood. Did the users miss the rows returned indicator too ("1000 rows returned")? Does this framework work?: When a limit is defined by the default 1000 dropdown= warning |
I think there also needs to be more work done on the hierarchy of the SQL Lab controls. If users are missing the limit dropdown which has a default applied then that seems like one of the root problems to solve here. Generally, I dont love how the default options would send an alert to the user. But this could be a fix for now to at least bring attention to an important control to the user. |
@zuzana-vej @Steejay |
SUMMARY
The longer warning message was using the new Alert component, but the warning message when rows were limited on result (not just what was displayed on UI) was not using the new Alert component. This PR addresses that for consistency.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:

After:

TEST PLAN
Tested on local
ADDITIONAL INFORMATION