From 10a46fd33c86146eef0bb388b8002330fc829981 Mon Sep 17 00:00:00 2001 From: Eric Radman Date: Wed, 15 May 2024 23:28:42 -0400 Subject: [PATCH] Revert "show pg and athena column comments and table descriptions as antd tooltip if they are defined (#6582)" (#6971) This reverts commit c12d45077a992e9d5d21bc891d4961c9a2ff73f6. This commit did not sort tables properly by schema, then name --- .../app/components/queries/SchemaBrowser.jsx | 74 ++++++------------- redash/models/__init__.py | 11 +-- redash/query_runner/athena.py | 39 ++-------- redash/query_runner/pg.py | 18 +---- tests/models/test_data_sources.py | 20 ++--- tests/query_runner/test_athena.py | 23 +----- 6 files changed, 43 insertions(+), 142 deletions(-) diff --git a/client/app/components/queries/SchemaBrowser.jsx b/client/app/components/queries/SchemaBrowser.jsx index 730f4acf88..ed8d2402ed 100644 --- a/client/app/components/queries/SchemaBrowser.jsx +++ b/client/app/components/queries/SchemaBrowser.jsx @@ -16,7 +16,6 @@ import LoadingState from "../items-list/components/LoadingState"; const SchemaItemColumnType = PropTypes.shape({ name: PropTypes.string.isRequired, type: PropTypes.string, - comment: PropTypes.string, }); export const SchemaItemType = PropTypes.shape({ @@ -48,30 +47,13 @@ function SchemaItem({ item, expanded, onToggle, onSelect, ...props }) { return (
- {item.description ? ( - - -