Removed a possibility to define two different names for Alert types on API and UI level.#86236
Conversation
…n API and UI level
|
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
|
Pinging @elastic/uptime (Team:uptime) |
| | React.LazyExoticComponent<ComponentType<AlertTypeParamsExpressionProps<AlertParamsType>>>; | ||
| requiresAppContext: boolean; | ||
| defaultActionMessage?: string; | ||
| name?: JSX.Element; |
There was a problem hiding this comment.
I took a look at the places that still use this name property. It seems they're using it for string values. Can these be pulled from the server side now with the changes you've done?
There was a problem hiding this comment.
Yes, I've just missed some of the places, but fortunately we have a great tests coverage to catch this as well!
There was a problem hiding this comment.
I saw one place using <FormattedMessage ... />. I think we'll be able to remove this line after the cleanup?
| name?: JSX.Element; |
There was a problem hiding this comment.
Good catch! I didn't realized at first it is a FormattedMessage :-)
chrisronline
left a comment
There was a problem hiding this comment.
LGTM for Stack Monitoring
|
Pinging @elastic/apm-ui (Team:apm) |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
…n API and UI level. (elastic#86236) * Removed a possibility to define two different names for Alert types on API and UI level * fixed typechecks * fixed typechecks * fixed due to comments * fixed typechecks * fixed jest tests * fixed typechecks
* master: (48 commits) Fix request with disabled aggregation (elastic#85696) [Security Solution][Detections][Threshold Rules] Threshold Rule Bug Fixes (elastic#84918) Removed a possibility to define two different names for Alert types on API and UI level. (elastic#86236) Bump Node.js from version 14.15.2 to 14.15.3 (elastic#86593) [index patterns] Fleep app - Keep saved object field list until field caps provides fields (elastic#85370) [Security Solutions] fix timeline tabs + layout (elastic#86581) Upgrade to hapi version 20 (elastic#85406) App Services: Remove remaining uiActions, expressions, data, embeddable circular dependencies. (elastic#82791) Rename chartLibrary setting to legacyChartsLibrary (elastic#86529) [CI] TeamCity updates (elastic#85843) [Maps] Use Json for mvt-tests (elastic#86492) [Rollup Jobs] Added autofocus to cron editor (elastic#86324) [Monitoring][Alerting] CCR read exceptions alert (elastic#85908) [CI] Bump memory for main CI workers (elastic#86541) Explicitly set Elasticsearch heap size during CI and local development (elastic#86513) [App Search] Updates to results on the documents view (elastic#86181) [Discover] Change default sort handling (elastic#85561) [App Search] Convert DocumentCreationModal to DocumentCreationFlyout (elastic#86508) [App Search] Sample Engines should have access to the Crawler (elastic#86502) Fixed duplication of create new modal (elastic#86489) ...
Resolve #61695