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

feat: update column stats ui, add sort by usage to columns #1389

Merged
merged 3 commits into from
Dec 19, 2023

Conversation

kgopal492
Copy link
Contributor

Screenshot 2023-12-19 at 11 39 36 AM

  • Update column stats UI to show table column stats as tags (rather than additional rows)
  • Add ability to sort columns by usage
  • Query all table column details from table column page to be able to sort columns by usage

@kgopal492 kgopal492 requested review from czgu and jczhong84 December 19, 2023 17:50
querybook/server/logic/metastore.py Outdated Show resolved Hide resolved
const [orderColumnsBy, setOrdeColumnsBy] = React.useState(true);
const [orderBoardBy, setOrderBoardBy] = React.useState(false);
const [orderColumnsBy, setOrderColumnsBy] =
React.useState<ColumnOrderBy>('usage');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COLUMN_STATS_USAGE_KEY?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there is no usage, what would happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 'usage' string just corresponds to the column order by type (so shouldn't use the constant here). If there's no usage, they're all treated as 0 usage. But I updated it so that you can't see the sort by usage option if there are no usages available for any of the columns so it isn't confusing to users.

@kgopal492 kgopal492 merged commit 370948f into pinterest:master Dec 19, 2023
4 checks passed
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