Skip to content

Commit

Permalink
Fix type issues, and disable new alerting for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Mar 27, 2020
1 parent 1ea1a9e commit 4bff2e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/monitoring/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const TELEMETRY_COLLECTION_INTERVAL = 86400000;
* as the only way to see the new UI and actually run Kibana alerts. It will
* be false until all alerts have been migrated, then it will be removed
*/
export const KIBANA_ALERTING_ENABLED = true;
export const KIBANA_ALERTING_ENABLED = false;

/**
* The prefix for all alert types used by monitoring
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const TELEMETRY_COLLECTION_INTERVAL = 86400000;
* as the only way to see the new UI and actually run Kibana alerts. It will
* be false until all alerts have been migrated, then it will be removed
*/
export const KIBANA_ALERTING_ENABLED = true;
export const KIBANA_ALERTING_ENABLED = false;

/**
* The prefix for all alert types used by monitoring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@

import moment from 'moment-timezone';
import { getLicenseExpiration } from './license_expiration';
import {
ALERT_TYPE_LICENSE_EXPIRATION,
MONITORING_CONFIG_ALERTING_EMAIL_ADDRESS,
} from '../../common/constants';
import { ALERT_TYPE_LICENSE_EXPIRATION } from '../../common/constants';
import { Logger } from 'src/core/server';
import { AlertServices, AlertInstance } from '../../../alerting/server';
import { AlertServices } from '../../../alerting/server';
import { savedObjectsClientMock } from 'src/core/server/mocks';
import {
AlertCommonParams,
AlertCommonState,
AlertLicensePerClusterState,
AlertCommonExecutorOptions,
AlertLicense,
} from './types';
import { SavedObject, SavedObjectAttributes } from 'src/core/server';
import { executeActions } from '../lib/alerts/license_expiration.lib';
import { SavedObjectsClientContract } from 'src/core/server';
import { PreparedAlert, getPreparedAlert } from '../lib/alerts/get_prepared_alert';

jest.mock('../lib/alerts/license_expiration.lib', () => ({
Expand Down

0 comments on commit 4bff2e2

Please sign in to comment.