mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-08 05:26:19 +00:00
* Supported DataModel in Dashboard Page * url fqn changes * Added Sql tab in Data Model Entity * if sql is not there tab will not be shown * fix the delete entity failure
This commit is contained in:
parent
d0c0942e1b
commit
8fb2f13f1e
@ -114,6 +114,8 @@ const DeleteWidgetModal = ({
|
||||
return 'policies';
|
||||
} else if (entityType === EntityType.KPI) {
|
||||
return entityType;
|
||||
} else if (entityType === EntityType.DASHBOARD_DATA_MODEL) {
|
||||
return `dashboard/datamodels`;
|
||||
} else {
|
||||
return `${entityType}s`;
|
||||
}
|
||||
|
||||
@ -727,6 +727,7 @@
|
||||
"source-column": "Source Column",
|
||||
"source-plural": "Sources",
|
||||
"specific-data-asset-plural": "Specific Data Assets",
|
||||
"sql-uppercase": "SQL",
|
||||
"sql-uppercase-query": "SQL Query",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Stage File Location",
|
||||
|
||||
@ -727,6 +727,7 @@
|
||||
"source-column": "Columna de Origen",
|
||||
"source-plural": "Fuentes",
|
||||
"specific-data-asset-plural": "Activos de Datos Específicos",
|
||||
"sql-uppercase": "SQL",
|
||||
"sql-uppercase-query": "Consulta SQL",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Ubicación del Archivo de Etapa",
|
||||
|
||||
@ -727,6 +727,7 @@
|
||||
"source-column": "Colonne Source",
|
||||
"source-plural": "Sources",
|
||||
"specific-data-asset-plural": "Specific Data Assets",
|
||||
"sql-uppercase": "SQL",
|
||||
"sql-uppercase-query": "SQL Query",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Stage File Location",
|
||||
|
||||
@ -727,6 +727,7 @@
|
||||
"source-column": "カラムのソース",
|
||||
"source-plural": "ソース",
|
||||
"specific-data-asset-plural": "Specific Data Assets",
|
||||
"sql-uppercase": "SQL",
|
||||
"sql-uppercase-query": "SQL Query",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Stage File Location",
|
||||
|
||||
@ -727,6 +727,7 @@
|
||||
"source-column": "Coluna de Origem",
|
||||
"source-plural": "Fontes",
|
||||
"specific-data-asset-plural": "Ativos de Dados Específicos",
|
||||
"sql-uppercase": "SQL",
|
||||
"sql-uppercase-query": "Consulta SQL",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Localização de Arquivo de Estágio",
|
||||
|
||||
@ -727,6 +727,7 @@
|
||||
"source-column": "Source Column",
|
||||
"source-plural": "Sources",
|
||||
"specific-data-asset-plural": "Specific Data Assets",
|
||||
"sql-uppercase": "SQL",
|
||||
"sql-uppercase-query": "SQL Query",
|
||||
"sso-uppercase": "SSO",
|
||||
"stage-file-location": "Stage File Location",
|
||||
|
||||
@ -25,10 +25,12 @@ import {
|
||||
OperationPermission,
|
||||
ResourceEntity,
|
||||
} from 'components/PermissionProvider/PermissionProvider.interface';
|
||||
import SchemaEditor from 'components/schema-editor/SchemaEditor';
|
||||
import { FQN_SEPARATOR_CHAR } from 'constants/char.constants';
|
||||
import { getServiceDetailsPath } from 'constants/constants';
|
||||
import { ENTITY_CARD_CLASS } from 'constants/entity.constants';
|
||||
import { NO_PERMISSION_TO_VIEW } from 'constants/HelperTextUtil';
|
||||
import { CSMode } from 'enums/codemirror.enum';
|
||||
import { EntityInfo, EntityType } from 'enums/entity.enum';
|
||||
import { ServiceCategory } from 'enums/service.enum';
|
||||
import { OwnerType } from 'enums/user.enum';
|
||||
@ -455,6 +457,28 @@ const DataModelsPage = () => {
|
||||
</Space>
|
||||
</Card>
|
||||
</Tabs.TabPane>
|
||||
|
||||
{dataModelData?.sql && (
|
||||
<Tabs.TabPane
|
||||
key={DATA_MODELS_DETAILS_TABS.SQL}
|
||||
tab={
|
||||
<span data-testid={DATA_MODELS_DETAILS_TABS.SQL}>
|
||||
{t('label.sql-uppercase')}
|
||||
</span>
|
||||
}>
|
||||
<Card className={ENTITY_CARD_CLASS}>
|
||||
<SchemaEditor
|
||||
editorClass="custom-code-mirror-theme full-screen-editor-height"
|
||||
mode={{ name: CSMode.SQL }}
|
||||
options={{
|
||||
styleActiveLine: false,
|
||||
readOnly: 'nocursor',
|
||||
}}
|
||||
value={dataModelData.sql}
|
||||
/>
|
||||
</Card>
|
||||
</Tabs.TabPane>
|
||||
)}
|
||||
</Tabs>
|
||||
</div>
|
||||
</PageContainerV1>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user