diff --git a/packages/kbn-analytics/src/reporter.ts b/packages/kbn-analytics/src/reporter.ts index 63bccdd24aea..3c1da5d0be31 100644 --- a/packages/kbn-analytics/src/reporter.ts +++ b/packages/kbn-analytics/src/reporter.ts @@ -25,7 +25,7 @@ import { Report, ReportManager } from './report'; import { ApplicationUsage } from './metrics'; export interface ReporterConfig { - http: ReportHTTP; + // http: ReportHTTP; storage?: Storage; checkInterval?: number; debug?: boolean; @@ -38,7 +38,7 @@ export class Reporter { checkInterval: number; private interval?: NodeJS.Timer; private lastAppId?: string; - private http: ReportHTTP; + // private http: ReportHTTP; private reportManager: ReportManager; private storageManager: ReportStorageManager; private readonly applicationUsage: ApplicationUsage; @@ -48,8 +48,8 @@ export class Reporter { private started = false; constructor(config: ReporterConfig) { - const { http, storage, debug, checkInterval = 90000, storageKey = 'analytics' } = config; - this.http = http; + const { storage, debug, checkInterval = 90000, storageKey = 'analytics' } = config; + // this.http = http; this.checkInterval = checkInterval; this.applicationUsage = new ApplicationUsage(); this.storageManager = new ReportStorageManager(storageKey, storage); diff --git a/src/plugins/home/public/application/components/__snapshots__/welcome.test.tsx.snap b/src/plugins/home/public/application/components/__snapshots__/welcome.test.tsx.snap index 4e66fd9e14c8..e091453ce99c 100644 --- a/src/plugins/home/public/application/components/__snapshots__/welcome.test.tsx.snap +++ b/src/plugins/home/public/application/components/__snapshots__/welcome.test.tsx.snap @@ -61,104 +61,6 @@ exports[`should render a Welcome screen with no telemetry disclaimer 1`] = ` `; -exports[`should render a Welcome screen with the telemetry disclaimer 1`] = ` - -
-
-
- - - - - -

- -

-
- -
-
-
- - - - - - - - - - - - - - - - - -
-
-
-`; - exports[`should render a Welcome screen with the telemetry disclaimer when optIn is false 1`] = `
@@ -85,6 +86,7 @@ export class TelemetrySender { }) ) ); + */ this.lastReported = `${Date.now()}`; this.saveToBrowser(); } catch (err) { diff --git a/src/plugins/telemetry/public/services/telemetry_service.ts b/src/plugins/telemetry/public/services/telemetry_service.ts index c6b37f497ecb..c53e2de414cc 100644 --- a/src/plugins/telemetry/public/services/telemetry_service.ts +++ b/src/plugins/telemetry/public/services/telemetry_service.ts @@ -119,6 +119,7 @@ export class TelemetryService { }; public fetchTelemetry = async ({ unencrypted = false } = {}) => { + /* const now = moment(); return this.http.post('/api/telemetry/v2/clusters/_stats', { body: JSON.stringify({ @@ -132,6 +133,8 @@ export class TelemetryService { }, }), }); + */ + return; }; public setOptIn = async (optedIn: boolean): Promise => {