From 711f5bf8dc8ef6226c626e4a06a36bd080fda921 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 +- superset-frontend/src/pages/DatasetList/index.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 abdc8a10d49e0..d427858f59c92 100644 --- a/superset-frontend/src/components/Datasource/ChangeDatasourceModal.tsx +++ b/superset-frontend/src/components/Datasource/ChangeDatasourceModal.tsx @@ -200,6 +200,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/pages/DatasetList/index.tsx b/superset-frontend/src/pages/DatasetList/index.tsx index 6d13580e537f6..f7bf6dcbbb1b5 100644 --- a/superset-frontend/src/pages/DatasetList/index.tsx +++ b/superset-frontend/src/pages/DatasetList/index.tsx @@ -304,6 +304,11 @@ const DatasetList: FunctionComponent = ({ size: 'xs', id: 'id', }, + { + Header: t('Description'), + accessor: 'description', + size: 'md', + }, { Cell: ({ row: {