-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Adding feature flag for enabling/disabling rule import and export #100718
[Alerting] Adding feature flag for enabling/disabling rule import and export #100718
Conversation
@@ -57,15 +57,6 @@ These operations can also be performed in bulk by multi-selecting rules and clic | |||
[role="screenshot"] | |||
image:images/bulk-mute-disable.png[The Manage rules button lets you mute/unmute, enable/disable, and delete in bulk] | |||
|
|||
[float] |
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.
Removed this section from the docs until we can enable it by default.
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
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
Right now, |
It shouldn't control import/export of actions/connectors. Are you unable to export actions/connectors when the flag is false? |
@ymao1 Ah yes you're right. My mistake! Thanks for clarifying |
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.
Left one outstanding question, but otherwise this looks great!
I think since we're doing this through the Saved objects management UI, we should defer to their handling of unrecognized object types. What do you think? |
@ymao1 Sure, sounds good. I just wasn't sure if we had more control there. It'd be nice to give the users as much insight into why the object is unsupported (assuming we know of course) but I'm happy to rely on the existing messaging as it does handle this case. |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/spaces/spaces_selection·ts.Spaces app Spaces Space Selector allows user to navigate to different spacesStandard Out
Stack Trace
Metrics [docs]History
To update your PR or re-run it, just comment with: cc @ymao1 |
… export (elastic#100718) * Adding feature flag for enabling rule import and export * Removing item from docs Co-authored-by: Kibana Machine <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
… export (#100718) (#100887) * Adding feature flag for enabling rule import and export * Removing item from docs Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: ymao1 <[email protected]>
* master: (77 commits) [RAC][Security Solution] Register Security Detection Rules with Rule Registry (elastic#96015) [Enterprise Search] Log warning for Kibana/EntSearch version mismatches (elastic#100809) updating the saved objects test to include more saved object types (elastic#100828) [ML] Fix categorization job view examples link when datafeed uses multiple indices (elastic#100789) Fixing ES archive mapping failure (elastic#100835) Fix bug with Observability > APM header navigation (elastic#100845) [Security Solution][Endpoint] Add event filters summary card to the fleet endpoint tab (elastic#100668) [Actions] Taking space id into account when creating email footer link (elastic#100734) Ensure comments on parameters in arrow functions are captured in the docs and ci metrics. (elastic#100823) [Security Solution] Improve find rule and find rule status route performance (elastic#99678) [DOCS] Adds video to introduction (elastic#100906) [Fleet] Improve combo box for fleet settings (elastic#100603) [Security Solution][Endpoint] Endpoint generator and data loader support for Host Isolation (elastic#100813) [DOCS] Adds Lens video (elastic#100898) [TSVB] [Table tab] Fix "Math" aggregation (elastic#100765) chore(NA): moving @kbn/io-ts-utils into bazel (elastic#100810) [Alerting] Adding feature flag for enabling/disabling rule import and export (elastic#100718) [TSVB] Fix Upgrading from 7.12.1 to 7.13.0 breaks TSVB (elastic#100864) [Lens] Adds dynamic table cell coloring (elastic#95217) [Security Solution][Endpoint] Do not display searchbar in security-trusted apps if there are no items (elastic#100853) ...
Resolves #100145
Summary
Added
xpack.alerting.enableImportExport
to control whether exporting of rules is available. Defaults tofalse
.To Verify
Run this PR branch. Create some rules and connectors. Go to Saved Objects Management UI and see that connectors are available for export but rules are not. Now set
xpack.alerting.enableImportExport
totrue
in yourkibana.dev.yml
. Reload the UI and see that rules are now listed for export in the Saved Objects Management UI.Checklist