Skip to content

Commit

Permalink
fix: validate incremental telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Jul 5, 2023
1 parent 393c23a commit 760dbd4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/redux/validation/validation.listeners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,13 @@ const incrementalValidationListener: AppListenerFn = listen => {
incrementalValidationStatus.abortController?.signal.addEventListener('abort', () => response.abort());
await response;

trackEvent('validation/validate_incremental', {
actionType: _action.type,
resourcesCount: resourceIdentifiers.length,
executionTime: stopExecutionTimer(),
});
if (!isAnyOf(updateMultipleClusterResources)(_action)) {
trackEvent('validation/validate_incremental', {
actionType: _action.type,
resourcesCount: resourceIdentifiers.length,
executionTime: stopExecutionTimer(),
});
}

incrementalValidationStatus.isRunning = false;
incrementalValidationStatus.abortController = undefined;
Expand Down

0 comments on commit 760dbd4

Please sign in to comment.