mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-27 00:40:06 +00:00
feat(logical): Add feature flag and models (#14097)
This commit is contained in:
parent
010da3c480
commit
e35daf9ce4
@ -283,6 +283,7 @@ public class AppConfigResolver implements DataFetcher<CompletableFuture<AppConfi
|
||||
.setShowHomePageRedesign(_featureFlags.isShowHomePageRedesign())
|
||||
.setShowProductUpdates(_featureFlags.isShowProductUpdates())
|
||||
.setLineageGraphV3(_featureFlags.isLineageGraphV3())
|
||||
.setLogicalModelsEnabled(_featureFlags.isLogicalModelsEnabled())
|
||||
.build();
|
||||
|
||||
appConfig.setFeatureFlags(featureFlagsConfig);
|
||||
|
||||
@ -757,6 +757,11 @@ type FeatureFlagsConfig {
|
||||
Enables the redesign of the lineage v2 graph
|
||||
"""
|
||||
lineageGraphV3: Boolean!
|
||||
|
||||
"""
|
||||
Enables logical models feature
|
||||
"""
|
||||
logicalModelsEnabled: Boolean!
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
@ -83,6 +83,7 @@ export const DEFAULT_APP_CONFIG = {
|
||||
showHomePageRedesign: false,
|
||||
showProductUpdates: false,
|
||||
lineageGraphV3: false,
|
||||
logicalModelsEnabled: false,
|
||||
},
|
||||
chromeExtensionConfig: {
|
||||
enabled: false,
|
||||
|
||||
@ -105,6 +105,7 @@ query appConfig {
|
||||
showHomePageRedesign
|
||||
showProductUpdates
|
||||
lineageGraphV3
|
||||
logicalModelsEnabled
|
||||
}
|
||||
chromeExtensionConfig {
|
||||
enabled
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
namespace com.linkedin.logical
|
||||
|
||||
import com.linkedin.common.Edge
|
||||
|
||||
@Aspect = {
|
||||
"name": "logicalParent"
|
||||
}
|
||||
record LogicalParent {
|
||||
@Relationship = {
|
||||
"/destinationUrn": {
|
||||
"name": "PhysicalInstanceOf",
|
||||
"entityTypes": [ "dataset", "schemaField" ],
|
||||
"createdOn": "parent/created/time",
|
||||
"createdActor": "parent/created/actor",
|
||||
"updatedOn": "parent/lastModified/time",
|
||||
"updatedActor": "parent/lastModified/actor",
|
||||
"properties": "parent/properties"
|
||||
}
|
||||
}
|
||||
@Searchable = {
|
||||
"/destinationUrn": {
|
||||
"fieldName": "logicalParent",
|
||||
"fieldType": "URN",
|
||||
"queryByDefault": false,
|
||||
"addToFilters": true,
|
||||
"hasValuesFieldName": "hasLogicalParent",
|
||||
"filterNameOverride": "Physical Instance Of"
|
||||
}
|
||||
}
|
||||
parent: Edge
|
||||
}
|
||||
@ -49,6 +49,7 @@ entities:
|
||||
- partitionsSummary
|
||||
- versionProperties
|
||||
- icebergCatalogInfo
|
||||
- logicalParent
|
||||
- name: dataHubPolicy
|
||||
doc: DataHub Policies represent access policies granted to users or groups on metadata operations like edit, view etc.
|
||||
category: internal
|
||||
@ -524,6 +525,7 @@ entities:
|
||||
- testResults
|
||||
- deprecation
|
||||
- subTypes
|
||||
- logicalParent
|
||||
- name: globalSettings
|
||||
doc: Global settings for an the platform
|
||||
category: internal
|
||||
|
||||
@ -45,4 +45,5 @@ public class FeatureFlags {
|
||||
private boolean showHomePageRedesign = false;
|
||||
private boolean lineageGraphV3 = true;
|
||||
private boolean showProductUpdates = false;
|
||||
private boolean logicalModelsEnabled = false;
|
||||
}
|
||||
|
||||
@ -641,6 +641,7 @@ featureFlags:
|
||||
showHomePageRedesign: ${SHOW_HOME_PAGE_REDESIGN:false} # If turned on, show the re-designed home page
|
||||
lineageGraphV3: ${LINEAGE_GRAPH_V3:false} # Enables the redesign of the lineage v2 graph
|
||||
showProductUpdates: ${SHOW_PRODUCT_UPDATES:true} # Whether to show in-product update popover on new updates.
|
||||
logicalModelsEnabled: ${LOGICAL_MODELS_ENABLED:false} # Enables logical models feature
|
||||
|
||||
entityChangeEvents:
|
||||
enabled: ${ENABLE_ENTITY_CHANGE_EVENTS_HOOK:true}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user