-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Uptime] Repair Alert Flyout #73528
Conversation
Pinging @elastic/uptime (Team:uptime) |
6bbea81
to
f5e2705
Compare
@shahzad31 I realized my previous patch won't work because it doesn't satisfy the typing constraint. The validation function isn't allowed to return a |
@justinkambic why not update types to handle this use case? change is fine, it's just it will increase uptime page load bundle size by adding fp-ts etc into it. Earlier it was lazy loaded only when validate was called. |
@mikecote do you think it would be an acceptable change to convert the EDIT: disregard, Shahzad came up with a better solution that requires no changes. |
@@ -10,7 +10,7 @@ import { | |||
AtomicStatusCheckParamsType, | |||
MonitorAvailabilityType, | |||
StatusCheckParamsType, | |||
} from '../../../../common/runtime_types/alerts'; | |||
} from '../../../../common/runtime_types'; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
💚 Build SucceededBuild metricspage load bundle size
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !!
* Add await to promise. * Remove lazy loading and reference to lazy resource from validation. * Revert previous changes and add simpler fix. * Remove unnecessary formatting changes. * Further cleanup. * Add more descriptive import path. * fix type * fix type Co-authored-by: Shahzad <[email protected]>
This PR didn't get backported directly. Because this PR is a fix for a defect previously-injected, we cherry-picked this commit to an existing backport PR #73733. |
Summary
Fixes #73527.
This PR fixes the alert flyout in the Uptime solution UI.
An animation of the current state of the flyout is available in the linked issue. The result of this change is depicted below:
Testing this PR
Checklist
Delete any items that are not applicable to this PR.
For maintainers