-
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
[Alerting][Connectors] Removing ability to set refresh=true
from ES Index Connector UI
#158102
Conversation
refresh=true
from ES Index Connector UI
Pinging @elastic/response-ops (Team:ResponseOps) |
@@ -26,8 +26,7 @@ image::management/connectors/images/index-connector.png[Index connector] | |||
[[index-connector-configuration]] | |||
==== Connector configuration | |||
|
|||
Index connectors must have a name and an {es} index. You can optionally set the |
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.
@lcawl I removed references to refresh
in the docs but did not touch the API as we are not changing the API (no breaking changes), just removing the ability to set the value in the UI.
@@ -46,10 +45,8 @@ xpack.actions.preconfigured: | |||
actionTypeId: .index | |||
config: | |||
index: .kibana | |||
refresh: true <1> |
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.
@lcawl I also remove this from the preconfigured connector config because we want to discourage people from setting the value to true
. When not set, it will default to false
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.
Tested locally, LTGM!
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.
Docs LGTM, thanks!
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @ymao1 |
… Index Connector UI (elastic#158102) Resolves elastic#155303 ## Summary Removes the refresh switch from the EX Index Connector UI Before: <img width="422" alt="Screenshot 2023-05-18 at 2 42 46 PM" src="https://github.com/elastic/kibana/assets/13104637/1a2e2ff4-5247-43f7-89ae-776a23be9e95"> After: <img width="410" alt="Screenshot 2023-05-18 at 2 50 09 PM" src="https://github.com/elastic/kibana/assets/13104637/2be21cc6-f128-44b5-bd53-cf6945c6f729"> No changes to the API so this is not a breaking change. Previously created Index Connectors should still work as before. ## To Verify **Verify previously created connectors can be updated** 1. Create an ES Index connector with refresh=true on `main` or in a previous version 2. Switch to this branch and verify the connector still loads and changes to the connector preserves the `refresh` value **Verify creating connector from UI** 1. On this branch, create an ES Index connector and verify that `refresh` is set to `false` **Verify creating connector from API** 1. On this branch, use the API to create an ES connector and verify you can successfully create one with either refresh set to `true` or `false` ### Checklist - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Resolves #155303
Summary
Removes the refresh switch from the EX Index Connector UI
Before:
After:
No changes to the API so this is not a breaking change. Previously created Index Connectors should still work as before.
To Verify
Verify previously created connectors can be updated
main
or in a previous versionrefresh
valueVerify creating connector from UI
refresh
is set tofalse
Verify creating connector from API
true
orfalse
Checklist