Skip to content

Commit e03907f

Browse files
committed
track relationship form opened
1 parent 87b737b commit e03907f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/compass-data-modeling/src/store/diagram.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,13 @@ export function selectCollection(namespace: string): CollectionSelectedAction {
298298

299299
export function selectRelationship(
300300
relationshipId: string
301-
): RelationSelectedAction {
302-
return {
303-
type: DiagramActionTypes.RELATIONSHIP_SELECTED,
304-
relationshipId,
301+
): DataModelingThunkAction<void, RelationSelectedAction> {
302+
return (dispatch, getState, { track }) => {
303+
dispatch({
304+
type: DiagramActionTypes.RELATIONSHIP_SELECTED,
305+
relationshipId,
306+
});
307+
track('Data Modeling Relationship Form Opened', {});
305308
};
306309
}
307310

packages/compass-telemetry/src/telemetry-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2919,7 +2919,7 @@ type DataModelingDiagramRelationshipAdded = CommonEvent<{
29192919
* @category Data Modeling
29202920
*/
29212921
type DataModelingDiagramRelationshipEdited = CommonEvent<{
2922-
name: 'Data Modeling Relationship Edited';
2922+
name: 'Data Modeling Relationship Form Opened';
29232923
payload: Record<string, never>;
29242924
}>;
29252925

0 commit comments

Comments
 (0)