-
Notifications
You must be signed in to change notification settings - Fork 186
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
Fix refreshing index pattern fields does not include the scripted fields #6237
Fix refreshing index pattern fields does not include the scripted fields #6237
Conversation
- Replaced custom service logic for a similar one to the Dashboards Management/Index pattern of the platform - Removed the ability to define fields that are not fields from the indices that match the index pattern or scripted fields
- Use a more low level logic to update the index pattern fields taking in account the scripted fields - The SavedObjects.refreshIndexPattern now throws an error when something fails instead of return the error message - Display a warning in the check fields or when refreshing the index pattern of the default configurated index pattern of the plugins
TestLegend: UI
Details 🟢 Ensuring a scripted field is added to the index pattern, run or force the alerts pattern check is run. The scripted field should not be lost (use Discover or Events tab to check it is there)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Ensuring a scripted field is added to the index pattern, use the index pattern selector to select the index pattern with the scripted field. The scripted field should not be lost (use Discover or Events tab to check it is there)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Ensuring a scripted field is added to the index pattern, use the index pattern selector to select the index pattern with the scripted field. Index data with new fields for the index pattern (you can use some category of sample data), then go to Events tab and open an alert that contain a new field. Then use the Reload button of the toast. The scripted field should not be lost (use Discover or Events tab to check it is there)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ |
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!!
|
|
|
TestLegend: UI
Details 🟢 Ensuring a scripted field is added to the index pattern, run or force the alerts pattern check is run. The scripted field should not be lost (use Discover or Events tab to check it is there)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Ensuring a scripted field is added to the index pattern, use the index pattern selector to select the index pattern with the scripted field. The scripted field should not be lost (use Discover or Events tab to check it is there)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Ensuring a scripted field is added to the index pattern, use the index pattern selector to select the index pattern with the scripted field. Index data with new fields for the index pattern (you can use some category of sample data), then go to Events tab and open an alert that contain a new field. Then use the Reload button of the toast. The scripted field should not be lost (use Discover or Events tab to check it is there)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ |
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
Description
This pull request fixes that refreshing the index pattern fields does not include the scripted fields.
Changes:
Management/Index pattern of the platform
in account the scripted fields
something fails instead of return the error message
indices that match the index pattern or scripted fields
pattern of the default configurated index pattern of the plugins
Issues Resolved
#3632
Evidence
Test
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Details
⚫ Ensuring a scripted field is added to the index pattern, run or force the alerts pattern check is run. The scripted field should not be lost (use Discover or Events tab to check it is there)
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Ensuring a scripted field is added to the index pattern, use the index pattern selector to select the index pattern with the scripted field. The scripted field should not be lost (use Discover or Events tab to check it is there)
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Ensuring a scripted field is added to the index pattern, use the index pattern selector to select the index pattern with the scripted field. Index data with new fields for the index pattern (you can use some category of sample data), then go to Events tab and open an alert that contain a new field. Then use the Reload button of the toast. The scripted field should not be lost (use Discover or Events tab to check it is there)
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Check List
yarn test:jest