-
Notifications
You must be signed in to change notification settings - Fork 970
refactor: Refactor various column details and add TypeMetadata to TableColumn model #1847
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
refactor: Refactor various column details and add TypeMetadata to TableColumn model #1847
Conversation
…ble metadata FE model Signed-off-by: Kristen Armes <[email protected]>
const nestedType = parseNestedType(column.col_type, databaseId); | ||
|
||
return { | ||
...column, | ||
col_index: index, | ||
key: tableKey + '/' + column.name, |
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.
Do we have to rebuild the column key here? is it not indexed in neo4j?
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.
You're right that it is indexed, but it wasn't being returned from the metadata API. I thought about adding it to the neo4j proxy query but then realized that wouldn't guarantee that the key was available for those using other proxies, and this way would guarantee we'd always have the key in FE
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
* chore: update search service to use new search mappings Signed-off-by: Allison Suarez Miranda <[email protected]> * needed fields back Signed-off-by: Allison Suarez Miranda <[email protected]> * updated index name to point to new index Signed-off-by: Allison Suarez Miranda <[email protected]> * Added deprecation warning log to old ES client Signed-off-by: Allison Suarez Miranda <[email protected]> * made fixtures match new mappings for tests Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed other unit ests Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * remove print and import unused Signed-off-by: Allison Suarez Miranda <[email protected]> * added docs explaining how to transition to /v2/search Signed-off-by: Allison Suarez Miranda <[email protected]> * bit more doc Signed-off-by: Allison Suarez Miranda <[email protected]> * change to keep BW compatibility and add new functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * a bit of cleanup and comments for clarity Signed-off-by: Allison Suarez Miranda <[email protected]> * more cleanup and manual testing of new search Signed-off-by: Allison Suarez Miranda <[email protected]> * updated all unit tests and initialize proxy classes according to bww comp functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * updated docs Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed flake and mypy errors Signed-off-by: Allison Suarez Miranda <[email protected]> * more mypy Signed-off-by: Allison Suarez Miranda <[email protected]> * sort imports in v3 Signed-off-by: Allison Suarez Miranda <[email protected]> * implemented most feedback need to do more manual testing and run unit tests + linter Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed import Signed-off-by: Allison Suarez Miranda <[email protected]> * updated doc Signed-off-by: Allison Suarez Miranda <[email protected]> * oops Signed-off-by: Allison Suarez Miranda <[email protected]> * fix Signed-off-by: Allison Suarez Miranda <[email protected]> * fix mypy issue Signed-off-by: Allison Suarez Miranda <[email protected]> * type removed Signed-off-by: Allison Suarez Miranda <[email protected]> * more config cleanup and some clarifications Signed-off-by: Allison Suarez Miranda <[email protected]> * fix: toggle filter should clear when off (#1848) * fix: toggle filter should clear when off Signed-off-by: Allison Suarez Miranda <[email protected]> * lint fix Signed-off-by: Allison Suarez Miranda <[email protected]> * updated unit test Signed-off-by: Allison Suarez Miranda <[email protected]> * suggestion Signed-off-by: Allison Suarez Miranda <[email protected]> * Refactoring various column details and adding type metadata to the table metadata FE model (#1847) Signed-off-by: Kristen Armes <[email protected]> * fix: fixes tour not resetting on different pages (#1849) Signed-off-by: Marcos Iglesias <[email protected]> * fix: better behavior for search filters (#1852) * fix: better behavior for application of filters Signed-off-by: Allison Suarez Miranda <[email protected]> * explicit comparison to None Signed-off-by: Allison Suarez Miranda <[email protected]> * 2nd round of feedback plus more context Signed-off-by: Allison Suarez Miranda <[email protected]> * added filters change from different PR and removed deprecated configs Signed-off-by: Allison Suarez Miranda <[email protected]> * chore: update search service to use new search mappings Signed-off-by: Allison Suarez Miranda <[email protected]> * needed fields back Signed-off-by: Allison Suarez Miranda <[email protected]> * updated index name to point to new index Signed-off-by: Allison Suarez Miranda <[email protected]> * Added deprecation warning log to old ES client Signed-off-by: Allison Suarez Miranda <[email protected]> * made fixtures match new mappings for tests Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed other unit ests Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * remove print and import unused Signed-off-by: Allison Suarez Miranda <[email protected]> * added docs explaining how to transition to /v2/search Signed-off-by: Allison Suarez Miranda <[email protected]> * bit more doc Signed-off-by: Allison Suarez Miranda <[email protected]> * change to keep BW compatibility and add new functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * a bit of cleanup and comments for clarity Signed-off-by: Allison Suarez Miranda <[email protected]> * more cleanup and manual testing of new search Signed-off-by: Allison Suarez Miranda <[email protected]> * updated all unit tests and initialize proxy classes according to bww comp functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * updated docs Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed flake and mypy errors Signed-off-by: Allison Suarez Miranda <[email protected]> * more mypy Signed-off-by: Allison Suarez Miranda <[email protected]> * sort imports in v3 Signed-off-by: Allison Suarez Miranda <[email protected]> * implemented most feedback need to do more manual testing and run unit tests + linter Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed import Signed-off-by: Allison Suarez Miranda <[email protected]> * updated doc Signed-off-by: Allison Suarez Miranda <[email protected]> * oops Signed-off-by: Allison Suarez Miranda <[email protected]> * fix Signed-off-by: Allison Suarez Miranda <[email protected]> * fix mypy issue Signed-off-by: Allison Suarez Miranda <[email protected]> * type removed Signed-off-by: Allison Suarez Miranda <[email protected]> * more config cleanup and some clarifications Signed-off-by: Allison Suarez Miranda <[email protected]> * 2nd round of feedback plus more context Signed-off-by: Allison Suarez Miranda <[email protected]> * added filters change from different PR and removed deprecated configs Signed-off-by: Allison Suarez Miranda <[email protected]> * Revert "Merge branch 'asm-search-with-new-mappings' of github.com:amundsen-io/amundsen into asm-search-with-new-mappings" This reverts commit 49c5c34, reversing changes made to e14b541. * fix args kwards Signed-off-by: Allison Suarez Miranda <[email protected]> * deprecating config Signed-off-by: Allison Suarez Miranda <[email protected]> * deprecating config Signed-off-by: Allison Suarez Miranda <[email protected]> * args fix Signed-off-by: Allison Suarez Miranda <[email protected]> * readme update Signed-off-by: Allison Suarez Miranda <[email protected]> * conf Signed-off-by: Allison Suarez Miranda <[email protected]> * flake Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed new Signed-off-by: Allison Suarez Miranda <[email protected]> * type ignore Signed-off-by: Allison Suarez Miranda <[email protected]> * https://peps.python.org/pep-0484/\#arbitrary-argument-lists-and-default-argument-values Signed-off-by: Allison Suarez Miranda <[email protected]> * Empty-Commit Co-authored-by: Kristen Armes <[email protected]> Co-authored-by: Marcos Iglesias <[email protected]>
…ble metadata FE model (amundsen-io#1847) Signed-off-by: Kristen Armes <[email protected]>
) * chore: update search service to use new search mappings Signed-off-by: Allison Suarez Miranda <[email protected]> * needed fields back Signed-off-by: Allison Suarez Miranda <[email protected]> * updated index name to point to new index Signed-off-by: Allison Suarez Miranda <[email protected]> * Added deprecation warning log to old ES client Signed-off-by: Allison Suarez Miranda <[email protected]> * made fixtures match new mappings for tests Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed other unit ests Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * remove print and import unused Signed-off-by: Allison Suarez Miranda <[email protected]> * added docs explaining how to transition to /v2/search Signed-off-by: Allison Suarez Miranda <[email protected]> * bit more doc Signed-off-by: Allison Suarez Miranda <[email protected]> * change to keep BW compatibility and add new functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * a bit of cleanup and comments for clarity Signed-off-by: Allison Suarez Miranda <[email protected]> * more cleanup and manual testing of new search Signed-off-by: Allison Suarez Miranda <[email protected]> * updated all unit tests and initialize proxy classes according to bww comp functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * updated docs Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed flake and mypy errors Signed-off-by: Allison Suarez Miranda <[email protected]> * more mypy Signed-off-by: Allison Suarez Miranda <[email protected]> * sort imports in v3 Signed-off-by: Allison Suarez Miranda <[email protected]> * implemented most feedback need to do more manual testing and run unit tests + linter Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed import Signed-off-by: Allison Suarez Miranda <[email protected]> * updated doc Signed-off-by: Allison Suarez Miranda <[email protected]> * oops Signed-off-by: Allison Suarez Miranda <[email protected]> * fix Signed-off-by: Allison Suarez Miranda <[email protected]> * fix mypy issue Signed-off-by: Allison Suarez Miranda <[email protected]> * type removed Signed-off-by: Allison Suarez Miranda <[email protected]> * more config cleanup and some clarifications Signed-off-by: Allison Suarez Miranda <[email protected]> * fix: toggle filter should clear when off (amundsen-io#1848) * fix: toggle filter should clear when off Signed-off-by: Allison Suarez Miranda <[email protected]> * lint fix Signed-off-by: Allison Suarez Miranda <[email protected]> * updated unit test Signed-off-by: Allison Suarez Miranda <[email protected]> * suggestion Signed-off-by: Allison Suarez Miranda <[email protected]> * Refactoring various column details and adding type metadata to the table metadata FE model (amundsen-io#1847) Signed-off-by: Kristen Armes <[email protected]> * fix: fixes tour not resetting on different pages (amundsen-io#1849) Signed-off-by: Marcos Iglesias <[email protected]> * fix: better behavior for search filters (amundsen-io#1852) * fix: better behavior for application of filters Signed-off-by: Allison Suarez Miranda <[email protected]> * explicit comparison to None Signed-off-by: Allison Suarez Miranda <[email protected]> * 2nd round of feedback plus more context Signed-off-by: Allison Suarez Miranda <[email protected]> * added filters change from different PR and removed deprecated configs Signed-off-by: Allison Suarez Miranda <[email protected]> * chore: update search service to use new search mappings Signed-off-by: Allison Suarez Miranda <[email protected]> * needed fields back Signed-off-by: Allison Suarez Miranda <[email protected]> * updated index name to point to new index Signed-off-by: Allison Suarez Miranda <[email protected]> * Added deprecation warning log to old ES client Signed-off-by: Allison Suarez Miranda <[email protected]> * made fixtures match new mappings for tests Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed other unit ests Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * remove print and import unused Signed-off-by: Allison Suarez Miranda <[email protected]> * added docs explaining how to transition to /v2/search Signed-off-by: Allison Suarez Miranda <[email protected]> * bit more doc Signed-off-by: Allison Suarez Miranda <[email protected]> * change to keep BW compatibility and add new functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * a bit of cleanup and comments for clarity Signed-off-by: Allison Suarez Miranda <[email protected]> * more cleanup and manual testing of new search Signed-off-by: Allison Suarez Miranda <[email protected]> * updated all unit tests and initialize proxy classes according to bww comp functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * updated docs Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed flake and mypy errors Signed-off-by: Allison Suarez Miranda <[email protected]> * more mypy Signed-off-by: Allison Suarez Miranda <[email protected]> * sort imports in v3 Signed-off-by: Allison Suarez Miranda <[email protected]> * implemented most feedback need to do more manual testing and run unit tests + linter Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed import Signed-off-by: Allison Suarez Miranda <[email protected]> * updated doc Signed-off-by: Allison Suarez Miranda <[email protected]> * oops Signed-off-by: Allison Suarez Miranda <[email protected]> * fix Signed-off-by: Allison Suarez Miranda <[email protected]> * fix mypy issue Signed-off-by: Allison Suarez Miranda <[email protected]> * type removed Signed-off-by: Allison Suarez Miranda <[email protected]> * more config cleanup and some clarifications Signed-off-by: Allison Suarez Miranda <[email protected]> * 2nd round of feedback plus more context Signed-off-by: Allison Suarez Miranda <[email protected]> * added filters change from different PR and removed deprecated configs Signed-off-by: Allison Suarez Miranda <[email protected]> * Revert "Merge branch 'asm-search-with-new-mappings' of github.com:amundsen-io/amundsen into asm-search-with-new-mappings" This reverts commit 49c5c34, reversing changes made to e14b541. * fix args kwards Signed-off-by: Allison Suarez Miranda <[email protected]> * deprecating config Signed-off-by: Allison Suarez Miranda <[email protected]> * deprecating config Signed-off-by: Allison Suarez Miranda <[email protected]> * args fix Signed-off-by: Allison Suarez Miranda <[email protected]> * readme update Signed-off-by: Allison Suarez Miranda <[email protected]> * conf Signed-off-by: Allison Suarez Miranda <[email protected]> * flake Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed new Signed-off-by: Allison Suarez Miranda <[email protected]> * type ignore Signed-off-by: Allison Suarez Miranda <[email protected]> * https://peps.python.org/pep-0484/\#arbitrary-argument-lists-and-default-argument-values Signed-off-by: Allison Suarez Miranda <[email protected]> * Empty-Commit Co-authored-by: Kristen Armes <[email protected]> Co-authored-by: Marcos Iglesias <[email protected]>
…ble metadata FE model (amundsen-io#1847) Signed-off-by: Kristen Armes <[email protected]>
) * chore: update search service to use new search mappings Signed-off-by: Allison Suarez Miranda <[email protected]> * needed fields back Signed-off-by: Allison Suarez Miranda <[email protected]> * updated index name to point to new index Signed-off-by: Allison Suarez Miranda <[email protected]> * Added deprecation warning log to old ES client Signed-off-by: Allison Suarez Miranda <[email protected]> * made fixtures match new mappings for tests Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed other unit ests Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * remove print and import unused Signed-off-by: Allison Suarez Miranda <[email protected]> * added docs explaining how to transition to /v2/search Signed-off-by: Allison Suarez Miranda <[email protected]> * bit more doc Signed-off-by: Allison Suarez Miranda <[email protected]> * change to keep BW compatibility and add new functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * a bit of cleanup and comments for clarity Signed-off-by: Allison Suarez Miranda <[email protected]> * more cleanup and manual testing of new search Signed-off-by: Allison Suarez Miranda <[email protected]> * updated all unit tests and initialize proxy classes according to bww comp functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * updated docs Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed flake and mypy errors Signed-off-by: Allison Suarez Miranda <[email protected]> * more mypy Signed-off-by: Allison Suarez Miranda <[email protected]> * sort imports in v3 Signed-off-by: Allison Suarez Miranda <[email protected]> * implemented most feedback need to do more manual testing and run unit tests + linter Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed import Signed-off-by: Allison Suarez Miranda <[email protected]> * updated doc Signed-off-by: Allison Suarez Miranda <[email protected]> * oops Signed-off-by: Allison Suarez Miranda <[email protected]> * fix Signed-off-by: Allison Suarez Miranda <[email protected]> * fix mypy issue Signed-off-by: Allison Suarez Miranda <[email protected]> * type removed Signed-off-by: Allison Suarez Miranda <[email protected]> * more config cleanup and some clarifications Signed-off-by: Allison Suarez Miranda <[email protected]> * fix: toggle filter should clear when off (amundsen-io#1848) * fix: toggle filter should clear when off Signed-off-by: Allison Suarez Miranda <[email protected]> * lint fix Signed-off-by: Allison Suarez Miranda <[email protected]> * updated unit test Signed-off-by: Allison Suarez Miranda <[email protected]> * suggestion Signed-off-by: Allison Suarez Miranda <[email protected]> * Refactoring various column details and adding type metadata to the table metadata FE model (amundsen-io#1847) Signed-off-by: Kristen Armes <[email protected]> * fix: fixes tour not resetting on different pages (amundsen-io#1849) Signed-off-by: Marcos Iglesias <[email protected]> * fix: better behavior for search filters (amundsen-io#1852) * fix: better behavior for application of filters Signed-off-by: Allison Suarez Miranda <[email protected]> * explicit comparison to None Signed-off-by: Allison Suarez Miranda <[email protected]> * 2nd round of feedback plus more context Signed-off-by: Allison Suarez Miranda <[email protected]> * added filters change from different PR and removed deprecated configs Signed-off-by: Allison Suarez Miranda <[email protected]> * chore: update search service to use new search mappings Signed-off-by: Allison Suarez Miranda <[email protected]> * needed fields back Signed-off-by: Allison Suarez Miranda <[email protected]> * updated index name to point to new index Signed-off-by: Allison Suarez Miranda <[email protected]> * Added deprecation warning log to old ES client Signed-off-by: Allison Suarez Miranda <[email protected]> * made fixtures match new mappings for tests Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed other unit ests Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * remove print and import unused Signed-off-by: Allison Suarez Miranda <[email protected]> * added docs explaining how to transition to /v2/search Signed-off-by: Allison Suarez Miranda <[email protected]> * bit more doc Signed-off-by: Allison Suarez Miranda <[email protected]> * change to keep BW compatibility and add new functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * a bit of cleanup and comments for clarity Signed-off-by: Allison Suarez Miranda <[email protected]> * more cleanup and manual testing of new search Signed-off-by: Allison Suarez Miranda <[email protected]> * updated all unit tests and initialize proxy classes according to bww comp functionality Signed-off-by: Allison Suarez Miranda <[email protected]> * lint Signed-off-by: Allison Suarez Miranda <[email protected]> * updated docs Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed flake and mypy errors Signed-off-by: Allison Suarez Miranda <[email protected]> * more mypy Signed-off-by: Allison Suarez Miranda <[email protected]> * sort imports in v3 Signed-off-by: Allison Suarez Miranda <[email protected]> * implemented most feedback need to do more manual testing and run unit tests + linter Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed import Signed-off-by: Allison Suarez Miranda <[email protected]> * updated doc Signed-off-by: Allison Suarez Miranda <[email protected]> * oops Signed-off-by: Allison Suarez Miranda <[email protected]> * fix Signed-off-by: Allison Suarez Miranda <[email protected]> * fix mypy issue Signed-off-by: Allison Suarez Miranda <[email protected]> * type removed Signed-off-by: Allison Suarez Miranda <[email protected]> * more config cleanup and some clarifications Signed-off-by: Allison Suarez Miranda <[email protected]> * 2nd round of feedback plus more context Signed-off-by: Allison Suarez Miranda <[email protected]> * added filters change from different PR and removed deprecated configs Signed-off-by: Allison Suarez Miranda <[email protected]> * Revert "Merge branch 'asm-search-with-new-mappings' of github.com:amundsen-io/amundsen into asm-search-with-new-mappings" This reverts commit 49c5c34, reversing changes made to e14b541. * fix args kwards Signed-off-by: Allison Suarez Miranda <[email protected]> * deprecating config Signed-off-by: Allison Suarez Miranda <[email protected]> * deprecating config Signed-off-by: Allison Suarez Miranda <[email protected]> * args fix Signed-off-by: Allison Suarez Miranda <[email protected]> * readme update Signed-off-by: Allison Suarez Miranda <[email protected]> * conf Signed-off-by: Allison Suarez Miranda <[email protected]> * flake Signed-off-by: Allison Suarez Miranda <[email protected]> * fixed new Signed-off-by: Allison Suarez Miranda <[email protected]> * type ignore Signed-off-by: Allison Suarez Miranda <[email protected]> * https://peps.python.org/pep-0484/\#arbitrary-argument-lists-and-default-argument-values Signed-off-by: Allison Suarez Miranda <[email protected]> * Empty-Commit Co-authored-by: Kristen Armes <[email protected]> Co-authored-by: Marcos Iglesias <[email protected]>
Signed-off-by: Kristen Armes [email protected]
Summary of Changes
These changes are made in anticipation of the upcoming work to add in nested columns retrieved from the backend rather than frontend parsing outlined here. This removes the dependence on the columns' indices around descriptions and side panel column details, and now relies on names and keys to be able to extend the same usage to nested columns.
TypeMetadata
in frontend model as an optionalTableColumn
field - this data was already being retrieved from the metadata API so now it is being populatedname
directly for getting/setting column descriptions rather than its indexkey
field toTableColumn
s to be used to keep track of which column is currently selected when the right side column details panel is opencol_index
field inTableColumn
ListSortingDropdown
to maintain the correct previous selection after the right side panel opens and closesTests
General cleanup of tests for changes outlined above, and added a test for the
ListSortingDropdown
to make sure it selects the new prop for the currently selected optionDocumentation
N/A
CheckList
Make sure you have checked all steps below to ensure a timely review.