-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Monitoring][Alerting] Added core features to Kibana services #84486
Conversation
Pinging @elastic/stack-monitoring (Team:Monitoring) |
@igoristic Nice work detecting this. I think we should definitely add a test at this point. Something that will fail when other teams make changes that break our usage of alerting. Maybe we can get away with a unit test that renders our WDYT? |
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.
If I load up your PR, and comment out https://github.com/elastic/kibana/pull/84486/files#diff-31c6a424a39f837baf2ec267a76691da885bd2ea2ee97199ae09f39714c2cb9bR127 to https://github.com/elastic/kibana/pull/84486/files#diff-31c6a424a39f837baf2ec267a76691da885bd2ea2ee97199ae09f39714c2cb9bR130, the test still passes, but the error still happens in the UI
The test was only intended to pass core features to the alert form, so if the alert form requires something else (or new) it would break. But, come to think of it I don't think this test is actually possible as a unit test. Since, we'd still need to mock Legacy shims with core services, via: jest.mock('../legacy_shims', () => ({
Legacy: {
shims: {
kibanaServices: {
...coreMock.createStart(),
}
}
},
})); Which still makes it bias. Do you have any ideas or suggestions? |
Is it possible to use Or, we can look into adding a functional test for it? Also, feel free to make an issue and do this after this too if it will hold up the PR |
💚 Build SucceededMetrics [docs]Async chunks
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! Great work!
@igoristic I had to revert this PR because of an incompatibility with something else that was merged. See here for type check failures. Can you fix that up and re-submit? |
Resolves #84483
Accommodates for changes made in #83248