Skip to content

Commit

Permalink
[Security Solution][Alerts] Update mapping conflicts warning message (#…
Browse files Browse the repository at this point in the history
…152726)

## Summary

These changes update warning message that we show to user to indicate
index mapping conflicts while selecting a field to build a Rule
Exception.

New tooltip message:

<img width="829" alt="Screenshot 2023-03-06 at 16 18 51"
src="https://user-images.githubusercontent.com/2700761/223154197-ee4ed680-5cc1-4b48-82d8-e225aa24519b.png">

[Main ticket](#146845)
Addition to [this PR](#149149)


cc @nastasha-solomon
  • Loading branch information
e40pud authored Mar 6, 2023
1 parent e94c1a6 commit ce96318
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export const FIELD_CONFLICT_INDICES_WARNING_TITLE = i18n.translate(
export const FIELD_CONFLICT_INDICES_WARNING_DESCRIPTION = i18n.translate(
'autocomplete.conflictIndicesWarning.description',
{
defaultMessage: 'This field is defined as several types across different indices.',
defaultMessage:
'This field is defined as different types across the following indices or is unmapped. This can cause unexpected query results.',
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ describe('BuilderEntryItem', () => {
);

expect(wrapper.find('.euiFormHelpText.euiFormRow__text').text()).toMatch(
/This field is defined as several types across different indices./
/This field is defined as different types across the following indices or is unmapped. This can cause unexpected query results./
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export const CUSTOM_COMBOBOX_OPTION_TEXT = i18n.translate(
export const FIELD_CONFLICT_INDICES_WARNING_DESCRIPTION = i18n.translate(
'xpack.lists.exceptions.field.mappingConflict.description',
{
defaultMessage: 'This field is defined as several types across different indices.',
defaultMessage:
'This field is defined as different types across the following indices or is unmapped. This can cause unexpected query results.',
}
);

Expand Down

0 comments on commit ce96318

Please sign in to comment.