You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracked the issue to formikToTrigger::formikToTriggerUiMetadataand triggerToFormik::queryLevelTriggerToFormik.
The _set() call on line 153 in formikToTriggerUiMetadata was removing the .s at the ends of the trigger name in the uiMetadata. In addition, the _.get() calls starting at line 49 in queryLevelTriggerToFormik were not factoring the . into their logic. This is likely due to the dot notation used for the path parameter of the _.get() and _.set() functions.
Implemented a fix that passes testing using trigger names like .trigger, trigger., ..trigger.., and .trigger.name..
Describe the bug
Having a
.
at the beginning or end of a trigger name causes the trigger condition values to reset when editing the monitor in the UX.To Reproduce
Steps to reproduce the behavior:
Create monitor
Per query monitor
.
as the first or last character; e.g.,.trigger
ortrigger.
IS ABOVE 10000
Expected behavior
The UX should display the configured trigger condition; not the defaults.
Plugins
Alerting
andalertingDashboards
.Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Related issues from the ODFE alerting plugin repo:
opendistro-for-elasticsearch/alerting-kibana-plugin#152
opendistro-for-elasticsearch/alerting-kibana-plugin#199
opendistro-for-elasticsearch/alerting-kibana-plugin#207
The text was updated successfully, but these errors were encountered: