Skip to content

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

Merged

Conversation

kristenarmes
Copy link
Contributor

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 of TypeMetadata 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:
Screen Shot 2022-05-17 at 5 49 15 PM

Current view for all, and for those not using TypeMetadata:
Screen Shot 2022-05-18 at 10 35 00 AM

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.

  • PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"
  • PR includes a summary of changes.
  • PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does

@boring-cyborg boring-cyborg bot added area:frontend From the Frontend folder category:ui labels May 18, 2022
@kristenarmes kristenarmes marked this pull request as ready for review May 18, 2022 17:58
Copy link
Member

@Golodhros Golodhros left a comment

Choose a reason for hiding this comment

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

Looking good!

Signed-off-by: Kristen Armes <[email protected]>
Copy link
Member

@Golodhros Golodhros left a 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;
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the docs!

@Golodhros Golodhros merged commit de9f13a into amundsen-io:main May 20, 2022
@kristenarmes kristenarmes deleted the nested-columns-dropdown-display branch May 20, 2022 17:43
allisonsuarez added a commit that referenced this pull request Jun 9, 2022
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this pull request Jun 30, 2022
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend From the Frontend folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants