mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-19 22:58:05 +00:00

Co-authored-by: ppurswan <ppurswan@visa.com> Co-authored-by: PrithviVISA <140717353+PrithviVISA@users.noreply.github.com> Co-authored-by: aditigup <aditigup@visa.com> Co-authored-by: Bharti, Aakash <aabharti@visa.com> Co-authored-by: Singh, Himanshu <hisingh@visa.com> Co-authored-by: Shukla, Amit <amishukl@visa.com> Co-authored-by: Kartikey Khandelwal <kakhande@visa.com>
64 lines
1.5 KiB
TypeScript
64 lines
1.5 KiB
TypeScript
import React from 'react';
|
|
import { AppConfig } from './types.generated';
|
|
|
|
export const DEFAULT_APP_CONFIG = {
|
|
analyticsConfig: {
|
|
enabled: false,
|
|
},
|
|
policiesConfig: {
|
|
enabled: false,
|
|
platformPrivileges: [],
|
|
resourcePrivileges: [],
|
|
},
|
|
identityManagementConfig: {
|
|
enabled: false,
|
|
},
|
|
managedIngestionConfig: {
|
|
enabled: false,
|
|
},
|
|
lineageConfig: {
|
|
supportsImpactAnalysis: false,
|
|
},
|
|
visualConfig: {
|
|
logoUrl: undefined,
|
|
queriesTab: {
|
|
queriesTabResultSize: 5,
|
|
},
|
|
entityProfile: {
|
|
domainDefaultTab: null,
|
|
},
|
|
searchResult: {
|
|
enableNameHighlight: false,
|
|
},
|
|
},
|
|
authConfig: {
|
|
tokenAuthEnabled: false,
|
|
},
|
|
telemetryConfig: {
|
|
enableThirdPartyLogging: false,
|
|
},
|
|
testsConfig: {
|
|
enabled: false,
|
|
},
|
|
viewsConfig: {
|
|
enabled: false,
|
|
},
|
|
featureFlags: {
|
|
readOnlyModeEnabled: false,
|
|
showSearchFiltersV2: true,
|
|
showBrowseV2: true,
|
|
showAcrylInfo: false,
|
|
erModelRelationshipFeatureEnabled: false,
|
|
showAccessManagement: false,
|
|
nestedDomainsEnabled: true,
|
|
platformBrowseV2: false,
|
|
businessAttributeEntityEnabled: false,
|
|
},
|
|
};
|
|
|
|
export const AppConfigContext = React.createContext<{
|
|
config: AppConfig;
|
|
loaded: boolean;
|
|
refreshContext: () => void;
|
|
}>({ config: DEFAULT_APP_CONFIG, loaded: false, refreshContext: () => null });
|