From 4e645ac29c90d1f734e59e1d449cd1aef4cfe5b9 Mon Sep 17 00:00:00 2001 From: Norman Hooper Date: Sun, 4 Feb 2024 15:56:55 +0000 Subject: [PATCH] Add description field --- .../src/components/Datasource/ChangeDatasourceModal.tsx | 4 ++++ superset-frontend/src/pages/ChartCreation/index.tsx | 2 +- .../src/views/CRUD/data/dataset/DatasetList.tsx | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/components/Datasource/ChangeDatasourceModal.tsx b/superset-frontend/src/components/Datasource/ChangeDatasourceModal.tsx index e976bfe91776e..ee1d71d1606fd 100644 --- a/superset-frontend/src/components/Datasource/ChangeDatasourceModal.tsx +++ b/superset-frontend/src/components/Datasource/ChangeDatasourceModal.tsx @@ -198,6 +198,10 @@ const ChangeDatasourceModal: FunctionComponent = ({ }; const columns = [ + { + Header: t('Description'), + accessor: 'description', + }, { Cell: ({ row: { original } }: any) => ( } > - {item.table_name} + {item.description} ); } diff --git a/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx b/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx index 9ef71415502fe..cb270c08040e5 100644 --- a/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx +++ b/superset-frontend/src/views/CRUD/data/dataset/DatasetList.tsx @@ -281,6 +281,11 @@ const DatasetList: FunctionComponent = ({ size: 'xs', id: 'id', }, + { + Header: t('Description'), + accessor: 'description', + size: 'md', + }, { Cell: ({ row: {