Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Uptime] Repair Alert Flyout #73528

Merged
merged 10 commits into from
Jul 30, 2020
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
AtomicStatusCheckParamsType,
MonitorAvailabilityType,
StatusCheckParamsType,
} from '../../../../common/runtime_types/alerts';
} from '../../../../common/runtime_types';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will also need to revert this, actually when you import it from index.ts file, it ends up bundling everything from that index file into the imported bundle.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out. I had consider reverting it and didn't think it would impact. I was wrong! Fixed this in b1b8b78.

import { ValidationResult } from '../../../../../triggers_actions_ui/public';

export function validateMonitorStatusParams(alertParams: any): ValidationResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const initMonitorStatusAlertType: AlertTypeInitializer = ({
validateFunc = validateMonitorStatusParams;
})();
}
return validateFunc && validateFunc(alertParams);
return validateFunc ? validateFunc(alertParams) : {};
},
defaultActionMessage,
requiresAppContext: false,
Expand Down