You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2026/04/23 18:34:53 UTC
(superset) branch semantic-layer-api-semantic-view updated (80233aed468 -> b0f0c57c98c)
This is an automated email from the ASF dual-hosted git repository.
betodealmeida pushed a change to branch semantic-layer-api-semantic-view
in repository https://gitbox.apache.org/repos/asf/superset.git
from 80233aed468 Fix DAO
add b0f0c57c98c feat(semantic layers): UI for editing semantic views (#38365)
No new revisions were added by this update.
Summary of changes:
UPDATING.md | 8 +
docker/pythonpath_dev/superset_config.py | 8 +-
docs/static/feature-flags.json | 6 +
pyproject.toml | 1 +
.../src/superset_core/semantic_layers/config.py | 73 +
.../src/superset_core/semantic_layers/layer.py | 2 +
.../src/superset_core/semantic_layers/view.py | 7 +
superset-frontend/package-lock.json | 215 ++-
superset-frontend/package.json | 7 +
.../components/Label/reusable/DatasetTypeLabel.tsx | 20 +-
.../superset-ui-core/src/query/types/Datasource.ts | 7 +
.../superset-ui-core/src/utils/featureFlags.ts | 1 +
superset-frontend/src/components/Chart/Chart.tsx | 4 +-
.../Chart/DrillDetail/DrillDetailPane.tsx | 3 +-
.../src/components/DatabaseSelector/index.tsx | 24 +-
.../Datasource/ChangeDatasourceModal/index.tsx | 11 +-
.../ErrorMessage/DatasetNotFoundErrorMessage.tsx | 3 +-
.../src/components/ListView/Filters/index.tsx | 6 +
.../src/components/ListView/ListView.tsx | 18 +-
.../components/AddSliceCard/AddSliceCard.tsx | 3 +-
.../src/dashboard/components/SliceAdder.tsx | 3 +-
.../FilterBar/FilterControls/GroupByFilterCard.tsx | 14 +-
.../FiltersConfigForm/DatasetSelect.tsx | 11 +-
.../FiltersConfigForm/FiltersConfigForm.tsx | 7 +-
.../src/explore/actions/exploreActions.ts | 74 +
.../DataTablesPane/components/SamplesPane.tsx | 6 +-
.../DatasourcePanelDragOption/index.tsx | 42 +-
.../explore/components/DatasourcePanel/index.tsx | 6 +-
.../components/ExploreViewContainer/index.tsx | 44 +
.../controls/DatasourceControl/index.tsx | 55 +-
.../DndColumnSelectControl/ColumnSelectPopover.tsx | 43 +-
.../DndAdhocFilterOption.tsx | 6 +-
.../DndColumnMetricSelect.tsx | 20 +-
.../DndColumnSelectControl/DndColumnSelect.tsx | 25 +-
.../DndColumnSelectControl/DndMetricSelect.tsx | 37 +-
.../FilterControl/AdhocFilterEditPopover/index.tsx | 34 +-
.../MetricControl/AdhocMetricEditPopover/index.tsx | 39 +-
superset-frontend/src/explore/controls.tsx | 3 +-
.../src/explore/reducers/exploreReducer.ts | 20 +
superset-frontend/src/explore/types.ts | 5 +
superset-frontend/src/features/home/Menu.tsx | 13 +-
superset-frontend/src/features/home/SubMenu.tsx | 29 +-
.../semanticLayers/SemanticLayerModal.test.tsx | 127 ++
.../features/semanticLayers/SemanticLayerModal.tsx | 400 +++++
.../features/semanticLayers/jsonFormsHelpers.tsx | 386 +++++
.../semanticViews/AddSemanticViewModal.tsx | 475 ++++++
.../semanticViews/SemanticViewEditModal.test.tsx | 95 ++
.../semanticViews/SemanticViewEditModal.tsx | 119 ++
.../src/pages/ChartCreation/index.tsx | 16 +-
superset-frontend/src/pages/ChartList/index.tsx | 5 +-
superset-frontend/src/pages/DatabaseList/index.tsx | 496 ++++--
.../DatasetList/DatasetList.behavior.test.tsx | 39 +-
.../DatasetList/DatasetList.integration.test.tsx | 23 +-
.../DatasetList/DatasetList.listview.test.tsx | 193 ++-
.../DatasetList/DatasetList.permissions.test.tsx | 17 +-
.../src/pages/DatasetList/DatasetList.test.tsx | 78 +-
.../pages/DatasetList/DatasetList.testHelpers.tsx | 28 +-
superset-frontend/src/pages/DatasetList/index.tsx | 634 +++++++-
superset-frontend/src/types/Dataset.ts | 11 +-
superset-frontend/src/utils/semanticLayerLabels.ts | 63 +
.../commands/datasource}/__init__.py | 0
superset/commands/datasource/list.py | 211 +++
superset/commands/semantic_layer/create.py | 104 ++
superset/commands/semantic_layer/delete.py | 81 +
superset/commands/semantic_layer/exceptions.py | 35 +
superset/commands/semantic_layer/update.py | 45 +-
superset/config.py | 3 +
superset/connectors/sqla/models.py | 21 +
superset/daos/datasource.py | 136 +-
superset/daos/semantic_layer.py | 26 +-
superset/datasource/api.py | 183 ++-
superset/datasource/schemas.py | 147 ++
superset/explorables/base.py | 40 +
superset/initialization/__init__.py | 9 +-
superset/semantic_layers/api.py | 856 ++++++++++-
superset/semantic_layers/mapper.py | 14 +-
superset/semantic_layers/models.py | 52 +
superset/semantic_layers/schemas.py | 23 +
superset/superset_typing.py | 1 +
superset/utils/semantic_layer_labels.py | 105 ++
tests/integration_tests/datasource/api_tests.py | 52 +
.../unit_tests/commands/datasource}/__init__.py | 0
tests/unit_tests/commands/datasource/list_test.py | 141 ++
.../commands/semantic_layer/create_test.py | 230 +++
.../commands/semantic_layer/delete_test.py | 83 +
.../commands/semantic_layer/exceptions_test.py | 43 +
.../commands/semantic_layer/update_test.py | 117 +-
tests/unit_tests/datasource/dao_tests.py | 29 +
tests/unit_tests/semantic_layers/api_test.py | 1600 ++++++++++++++++++++
tests/unit_tests/semantic_layers/models_test.py | 28 +
tests/unit_tests/semantic_layers/schemas_test.py | 131 +-
91 files changed, 8223 insertions(+), 491 deletions(-)
create mode 100644 superset-core/src/superset_core/semantic_layers/config.py
create mode 100644 superset-frontend/src/features/semanticLayers/SemanticLayerModal.test.tsx
create mode 100644 superset-frontend/src/features/semanticLayers/SemanticLayerModal.tsx
create mode 100644 superset-frontend/src/features/semanticLayers/jsonFormsHelpers.tsx
create mode 100644 superset-frontend/src/features/semanticViews/AddSemanticViewModal.tsx
create mode 100644 superset-frontend/src/features/semanticViews/SemanticViewEditModal.test.tsx
create mode 100644 superset-frontend/src/features/semanticViews/SemanticViewEditModal.tsx
create mode 100644 superset-frontend/src/utils/semanticLayerLabels.ts
copy {tests/unit_tests/distributed_lock => superset/commands/datasource}/__init__.py (100%)
create mode 100644 superset/commands/datasource/list.py
create mode 100644 superset/commands/semantic_layer/create.py
create mode 100644 superset/commands/semantic_layer/delete.py
create mode 100644 superset/datasource/schemas.py
create mode 100644 superset/utils/semantic_layer_labels.py
copy {superset-core/src/superset_core/common => tests/unit_tests/commands/datasource}/__init__.py (100%)
create mode 100644 tests/unit_tests/commands/datasource/list_test.py
create mode 100644 tests/unit_tests/commands/semantic_layer/create_test.py
create mode 100644 tests/unit_tests/commands/semantic_layer/delete_test.py