Skip to content

Commit

Permalink
fixed typechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Aug 24, 2021
1 parent 041243a commit 6f6770f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/alerting/server/routes/find_rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const rewriteBodyRes: RewriteResponseCase<FindResult<AlertTypeParams>> = ({
executionStatus,
actions,
scheduledTaskId,
legacyId,
...rest
}) => ({
...rest,
Expand All @@ -86,6 +87,7 @@ const rewriteBodyRes: RewriteResponseCase<FindResult<AlertTypeParams>> = ({
created_at: createdAt,
updated_at: updatedAt,
api_key_owner: apiKeyOwner,
legacy_id: legacyId,
notify_when: notifyWhen,
mute_all: muteAll,
muted_alert_ids: mutedInstanceIds,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('createAlertRoute', () => {
bar: true,
},
throttle: '30s',
legacyId: null,
notifyWhen: 'onActionGroupChange',
actions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function createAlertTests({ getService }: FtrProviderContext) {
consumer: 'alertsFixture',
params: {},
created_by: null,
legacy_id: null,
schedule: { interval: '1m' },
scheduled_task_id: response.body.scheduled_task_id,
updated_by: null,
Expand Down Expand Up @@ -318,6 +319,7 @@ export default function createAlertTests({ getService }: FtrProviderContext) {
scheduledTaskId: response.body.scheduledTaskId,
updatedBy: null,
apiKeyOwner: null,
legacyId: null,
throttle: '1m',
notifyWhen: 'onThrottleInterval',
muteAll: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default function createFindTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
created_by: null,
legacy_id: null,
api_key_owner: null,
scheduled_task_id: match.scheduled_task_id,
updated_by: null,
Expand Down Expand Up @@ -145,6 +146,7 @@ export default function createFindTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
createdBy: null,
legacyId: null,
apiKeyOwner: null,
scheduledTaskId: match.scheduledTaskId,
updatedBy: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
created_by: null,
legacy_id: null,
scheduled_task_id: response.body.scheduled_task_id,
updated_by: null,
api_key_owner: null,
Expand Down Expand Up @@ -108,6 +109,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
actions: [],
params: {},
createdBy: null,
legacyId: null,
scheduledTaskId: response.body.scheduledTaskId,
updatedBy: null,
apiKeyOwner: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) {
enabled: true,
updated_by: null,
api_key_owner: null,
legacyId: null,
mute_all: false,
muted_alert_ids: [],
notify_when: 'onThrottleInterval',
Expand Down Expand Up @@ -142,6 +143,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) {
enabled: true,
updatedBy: null,
apiKeyOwner: null,
legacyId: null,
muteAll: false,
mutedInstanceIds: [],
notifyWhen: 'onThrottleInterval',
Expand Down

0 comments on commit 6f6770f

Please sign in to comment.