mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-29 17:59:24 +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()) |             .setShowHomePageRedesign(_featureFlags.isShowHomePageRedesign()) | ||||||
|             .setShowProductUpdates(_featureFlags.isShowProductUpdates()) |             .setShowProductUpdates(_featureFlags.isShowProductUpdates()) | ||||||
|             .setLineageGraphV3(_featureFlags.isLineageGraphV3()) |             .setLineageGraphV3(_featureFlags.isLineageGraphV3()) | ||||||
|  |             .setLogicalModelsEnabled(_featureFlags.isLogicalModelsEnabled()) | ||||||
|             .build(); |             .build(); | ||||||
| 
 | 
 | ||||||
|     appConfig.setFeatureFlags(featureFlagsConfig); |     appConfig.setFeatureFlags(featureFlagsConfig); | ||||||
|  | |||||||
| @ -757,6 +757,11 @@ type FeatureFlagsConfig { | |||||||
|   Enables the redesign of the lineage v2 graph |   Enables the redesign of the lineage v2 graph | ||||||
|   """ |   """ | ||||||
|   lineageGraphV3: Boolean! |   lineageGraphV3: Boolean! | ||||||
|  | 
 | ||||||
|  |   """ | ||||||
|  |   Enables logical models feature | ||||||
|  |   """ | ||||||
|  |   logicalModelsEnabled: Boolean! | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| """ | """ | ||||||
|  | |||||||
| @ -83,6 +83,7 @@ export const DEFAULT_APP_CONFIG = { | |||||||
|         showHomePageRedesign: false, |         showHomePageRedesign: false, | ||||||
|         showProductUpdates: false, |         showProductUpdates: false, | ||||||
|         lineageGraphV3: false, |         lineageGraphV3: false, | ||||||
|  |         logicalModelsEnabled: false, | ||||||
|     }, |     }, | ||||||
|     chromeExtensionConfig: { |     chromeExtensionConfig: { | ||||||
|         enabled: false, |         enabled: false, | ||||||
|  | |||||||
| @ -105,6 +105,7 @@ query appConfig { | |||||||
|             showHomePageRedesign |             showHomePageRedesign | ||||||
|             showProductUpdates |             showProductUpdates | ||||||
|             lineageGraphV3 |             lineageGraphV3 | ||||||
|  |             logicalModelsEnabled | ||||||
|         } |         } | ||||||
|         chromeExtensionConfig { |         chromeExtensionConfig { | ||||||
|             enabled |             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 |       - partitionsSummary | ||||||
|       - versionProperties |       - versionProperties | ||||||
|       - icebergCatalogInfo |       - icebergCatalogInfo | ||||||
|  |       - logicalParent | ||||||
|   - name: dataHubPolicy |   - name: dataHubPolicy | ||||||
|     doc: DataHub Policies represent access policies granted to users or groups on metadata operations like edit, view etc. |     doc: DataHub Policies represent access policies granted to users or groups on metadata operations like edit, view etc. | ||||||
|     category: internal |     category: internal | ||||||
| @ -524,6 +525,7 @@ entities: | |||||||
|       - testResults |       - testResults | ||||||
|       - deprecation |       - deprecation | ||||||
|       - subTypes |       - subTypes | ||||||
|  |       - logicalParent | ||||||
|   - name: globalSettings |   - name: globalSettings | ||||||
|     doc: Global settings for an the platform |     doc: Global settings for an the platform | ||||||
|     category: internal |     category: internal | ||||||
|  | |||||||
| @ -45,4 +45,5 @@ public class FeatureFlags { | |||||||
|   private boolean showHomePageRedesign = false; |   private boolean showHomePageRedesign = false; | ||||||
|   private boolean lineageGraphV3 = true; |   private boolean lineageGraphV3 = true; | ||||||
|   private boolean showProductUpdates = false; |   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 |   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 |   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. |   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: | entityChangeEvents: | ||||||
|   enabled: ${ENABLE_ENTITY_CHANGE_EVENTS_HOOK:true} |   enabled: ${ENABLE_ENTITY_CHANGE_EVENTS_HOOK:true} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Andrew Sikowitz
						Andrew Sikowitz