datahub/datahub-web-react/src/appConfigContext.tsx
deepgarg-visa c35f3602b6
feat(ui/backend/openapi/docs) : Add support for Business Attributes (#9863)
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>
2024-04-15 18:19:21 -05:00

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 });