Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/compass-crud/src/stores/crud-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,7 @@ class CrudStoreImpl
? 'readonly'
: 'collection',
used_regex: objectContainsRegularExpression(query.filter ?? {}),
mode: this.modeForTelemetry(),
},
this.connectionInfoRef.current
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ describe('Collection documents tab', function () {
has_projection: false,
has_skip: false,
has_sort: false,
mode: 'list',
used_regex: false,
});

Expand Down Expand Up @@ -218,6 +219,7 @@ describe('Collection documents tab', function () {
has_projection: true,
has_sort: true,
has_skip: true,
mode: 'list',
used_regex: false,
});

Expand Down
7 changes: 6 additions & 1 deletion packages/compass-telemetry/src/telemetry-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,11 @@ type QueryExecutedEvent = ConnectionScopedEvent<{
* Indicates whether the query used a regular expression.
*/
used_regex: boolean;

/**
* The view used to run the query.
*/
mode: 'list' | 'json' | 'table';
};
}>;

Expand Down Expand Up @@ -2313,7 +2318,7 @@ type AutoupdateDismissedEvent = CommonEvent<{
}>;

/**
* This event is fired when the user changes the items view type between list and grid.
* This event is fired when the user changes the items view type in the database and collection list between "list" and "grid".
*
* @category Database / Collection List
*/
Expand Down
Loading