-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ui): Sort top users by their query count in datasets stats tab #7148
fix(ui): Sort top users by their query count in datasets stats tab #7148
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. Thank you!
Actually it looks like we are failing the frontend build. Can you please make sure the usage of useMemo is NOT conditional before we accept this? |
(You should not need to use useMemo at all) |
Will do this shortly. I wondered if I should in the first place. Let me remove it. |
@jjoyce0510 - removed useMemo. Please review and accept. Thanks! |
(Assuming you've tested this locally) Once we are green we will merge it in. Thanks! |
Yes. Looks green. Thanks! |
Summary:
Currently the top users within the stats tab of a Dataset is not sorted by their query count. This change reflects the top users by their counts.
Example:
Sample usage statistics:
"aspectName" : "datasetUsageStatistics", "aspect" : { "value" : "{ \"timestampMillis\":1674749347000,\"partitionSpec\": {\"type\": \"FULL_TABLE\", \"partition\": \"FULL_TABLE_SNAPSHOT\"}, \"totalSqlQueries\": 155, \"uniqueUserCount\": 1, \"userCounts\": [{\"user\": \"urn:li:corpuser:datahub\", \"count\": 21, \"userEmail\": \"[email protected]\"},{\"user\": \"urn:li:corpuser:jkadambi\", \"count\": 100, \"userEmail\": \"[email protected]\"},{\"user\": \"urn:li:corpuser:eaipeas\", \"count\": 9920, \"userEmail\":\"[email protected]\"},{\"user\": \"urn:li:corpuser:jac_script\", \"count\": 35, \"userEmail\": \"[email protected]\"},{\"user\": \"urn:li:corpuser:dbrumba2\", \"count\": 2035, \"userEmail\": \"[email protected]\"}]}", "contentType": "application/json"
Checklist