mirror of
https://github.com/apache/superset.git
synced 2026-06-04 15:19:25 +00:00
feat: Dataset folders editor (#36239)
This commit is contained in:
committed by
GitHub
parent
4a7cdccdad
commit
a6a66ca483
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
import { t } from '@apache-superset/core';
|
||||
import { Metric } from '@superset-ui/core';
|
||||
import { FoldersEditorItemType } from 'src/components/Datasource/types';
|
||||
import {
|
||||
ColumnItem,
|
||||
DatasourceFolder,
|
||||
@@ -161,11 +162,11 @@ export const transformDatasourceWithFolders = (
|
||||
): Folder[] => {
|
||||
const metricsWithType: MetricItem[] = metricsToDisplay.map(metric => ({
|
||||
...metric,
|
||||
type: 'metric',
|
||||
type: FoldersEditorItemType.Metric,
|
||||
}));
|
||||
const columnsWithType: ColumnItem[] = columnsToDisplay.map(column => ({
|
||||
...column,
|
||||
type: 'column',
|
||||
type: FoldersEditorItemType.Column,
|
||||
}));
|
||||
|
||||
return transformToFolderStructure(
|
||||
|
||||
Reference in New Issue
Block a user