-
Notifications
You must be signed in to change notification settings - Fork 970
feat: Adding nested columns to be displayed in the column dropdowns as rows #1865
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: Adding nested columns to be displayed in the column dropdowns as rows #1865
Conversation
… (currently disabled) Signed-off-by: Kristen Armes <[email protected]>
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.
Looking good!
frontend/amundsen_application/static/js/components/Table/index.spec.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/components/Table/index.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/components/Table/index.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/components/Table/index.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/components/Table/index.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/components/Table/index.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/features/ColumnList/index.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/features/ColumnList/index.tsx
Outdated
Show resolved
Hide resolved
frontend/amundsen_application/static/js/features/ColumnList/index.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Kristen Armes <[email protected]>
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
formatChildrenData?: (item: any, index: number) => FormattedDataType; | ||
/** Function used to pre expand the right panel with the designated details */ | ||
preExpandRightPanel?: (columnDetails: FormattedDataType) => void; |
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.
Thanks for the docs!
…s rows (amundsen-io#1865) * Adding nested columns to be displayed in the column dropdowns as rows (currently disabled) Signed-off-by: Kristen Armes <[email protected]> * Addressing PR comments Signed-off-by: Kristen Armes <[email protected]>
Signed-off-by: Kristen Armes [email protected]
Summary of Changes
These changes repurpose the column dropdown functionality to display nested columns rather than column details. Clicking on the column names will display the details instead of the dropdown (see #1831).
This dropdown usage will only be available to those using
TypeMetadata
on the backend, where the complex types are parsed in databuilder and stored in the db. For all others, the existing frontend parsing/display behavior for nested columns has been preserved. All users regardless ofTypeMetadata
usage will no longer be able to view column details through the dropdown.Please note that in this specific PR the changes described here have been disabled. Once the changes reach parity with the existing frontend parsing behavior, it will be enabled.
With new changes, once enabled:

Current view for all, and for those not using

TypeMetadata
:Tests
New tests added to test the new dropdown functionality. Also, navigating to a column link for nested columns is being tested as well, since each intermediate column between the top level and the one being navigated to must be preexpanded.
Documentation
N/A
CheckList
Make sure you have checked all steps below to ensure a timely review.