File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
compass-data-modeling/src/store Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -263,10 +263,10 @@ export function startAnalysis(
263263 } )
264264 ) ;
265265
266- if (
266+ const attemptRelationshipInference =
267267 preferences . getPreferences ( ) . enableAutomaticRelationshipInference &&
268- options . automaticallyInferRelations
269- ) {
268+ options . automaticallyInferRelations ;
269+ if ( attemptRelationshipInference ) {
270270 relations = (
271271 await Promise . all (
272272 collections . map (
@@ -338,6 +338,9 @@ export function startAnalysis(
338338
339339 track ( 'Data Modeling Diagram Created' , {
340340 num_collections : collections . length ,
341+ num_relations_inferred : attemptRelationshipInference
342+ ? relations . length
343+ : undefined ,
341344 } ) ;
342345
343346 void dataModelStorage . save ( getCurrentDiagramFromState ( getState ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -2943,6 +2943,7 @@ type DataModelingDiagramCreated = CommonEvent<{
29432943 name : 'Data Modeling Diagram Created' ;
29442944 payload : {
29452945 num_collections : number ;
2946+ num_relations_inferred ?: number ;
29462947 } ;
29472948} > ;
29482949
You can’t perform that action at this time.
0 commit comments