Skip to content
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

Merged
merged 3 commits into from
May 28, 2021

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented May 26, 2021

Resolves #100145

Summary

Added xpack.alerting.enableImportExport to control whether exporting of rules is available. Defaults to false.

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 to true in your kibana.dev.yml. Reload the UI and see that rules are now listed for export in the Saved Objects Management UI.

Checklist

@@ -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]
Copy link
Contributor Author

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.

@ymao1 ymao1 self-assigned this May 26, 2021
@ymao1 ymao1 added Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.14.0 v8.0.0 labels May 26, 2021
@ymao1 ymao1 marked this pull request as ready for review May 26, 2021 21:50
@ymao1 ymao1 requested a review from a team as a code owner May 26, 2021 21:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chrisronline chrisronline self-requested a review May 27, 2021 14:45
@chrisronline
Copy link
Contributor

Right now, xpack.alerting.enableImportExport controls both alerts/rules and actions/connectors. Is that desired? Or do we want a separate config (xpack.alerting.enableImportExport) for actions/connectors?

@ymao1
Copy link
Contributor Author

ymao1 commented May 27, 2021

Right now, xpack.alerting.enableImportExport controls both alerts/rules and actions/connectors. Is that desired? Or do we want a separate config (xpack.alerting.enableImportExport) for actions/connectors?

It shouldn't control import/export of actions/connectors. Are you unable to export actions/connectors when the flag is false?

@chrisronline
Copy link
Contributor

@ymao1 Ah yes you're right. My mistake! Thanks for clarifying

@chrisronline
Copy link
Contributor

I'd suggest filing a separate issue for this (if necessary), but is there something we can to improve the UX of importing an alert when this config is turned off? Maybe something like "To import this alert, please enable the feature flag"

Screen Shot 2021-05-27 at 11 17 14 AM

Copy link
Contributor

@chrisronline chrisronline left a 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!

@ymao1
Copy link
Contributor Author

ymao1 commented May 27, 2021

I'd suggest filing a separate issue for this (if necessary), but is there something we can to improve the UX of importing an alert when this config is turned off? Maybe something like "To import this alert, please enable the feature flag"

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?

@chrisronline
Copy link
Contributor

@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.

@ymao1
Copy link
Contributor Author

ymao1 commented May 28, 2021

@elasticmachine merge upstream

@ymao1 ymao1 added the auto-backport Deprecated - use backport:version if exact versions are needed label May 28, 2021
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana 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 spaces

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/99581

[00:00:00]       │
[00:08:29]         └-: Spaces app
[00:08:29]           └-> "before all" hook in "Spaces app"
[00:10:26]           └-: Spaces
[00:10:26]             └-> "before all" hook in "Spaces"
[00:10:26]             └-: Space Selector
[00:10:26]               └-> "before all" hook for "allows user to navigate to different spaces"
[00:10:26]               └-> "before all" hook for "allows user to navigate to different spaces"
[00:10:26]                 │ info [spaces/selector] Loading "mappings.json"
[00:10:26]                 │ info [spaces/selector] Loading "data.json"
[00:10:26]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_task_manager_8.0.0_001/SxKohSGkRV-xp3aYZgBBvA] deleting index
[00:10:26]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_001/S6e6y9RiRh2WEh1Ce4gpOQ] deleting index
[00:10:26]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_pre6.5.0_001/0BpDAXdTS-mtBBFq6axRvg] deleting index
[00:10:26]                 │ info [spaces/selector] Deleted existing index ".kibana_8.0.0_001"
[00:10:26]                 │ info [spaces/selector] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:10:26]                 │ info [spaces/selector] Deleted existing index ".kibana_pre6.5.0_001"
[00:10:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:10:26]                 │ info [spaces/selector] Created index ".kibana"
[00:10:26]                 │ debg [spaces/selector] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:10:26]                 │ info [spaces/selector] Indexed 3 docs into ".kibana"
[00:10:26]                 │ debg Migrating saved objects
[00:10:26]                 │ proc [kibana]   log   [12:19:20.327] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:10:26]                 │ proc [kibana]   log   [12:19:20.330] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 7ms.
[00:10:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:10:26]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:10:26]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] adding block write to indices [[.kibana/7NlzSQwdSL2bQo6Ka6ac9g]]
[00:10:26]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] completed adding block write to indices [.kibana]
[00:10:26]                 │ proc [kibana]   log   [12:19:20.416] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 88ms.
[00:10:26]                 │ proc [kibana]   log   [12:19:20.436] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 106ms.
[00:10:26]                 │ proc [kibana]   log   [12:19:20.460] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 45ms.
[00:10:26]                 │ proc [kibana]   log   [12:19:20.460] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 135ms
[00:10:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:10:26]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:10:26]                 │ proc [kibana]   log   [12:19:20.514] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX. took: 78ms.
[00:10:26]                 │ proc [kibana]   log   [12:19:20.518] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK. took: 4ms.
[00:10:26]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] 24647 finished with response BulkByScrollResponse[took=16.6ms,timed_out=false,sliceId=null,updated=0,created=3,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:10:26]                 │ proc [kibana]   log   [12:19:20.623] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE. took: 105ms.
[00:10:26]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana/7NlzSQwdSL2bQo6Ka6ac9g] deleting index
[00:10:27]                 │ proc [kibana]   log   [12:19:20.669] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK. took: 46ms.
[00:10:27]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] adding block write to indices [[.kibana_pre6.5.0_001/8pUcocrDQOarkf9RqJyomw]]
[00:10:27]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:10:27]                 │ proc [kibana]   log   [12:19:20.710] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 41ms.
[00:10:27]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:10:27]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:10:27]                 │ proc [kibana]   log   [12:19:20.769] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 59ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:20.772] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 3ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:20.778] [info][savedobjects-service] [.kibana] Starting to process 3 documents.
[00:10:27]                 │ proc [kibana]   log   [12:19:20.778] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 6ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:20.781] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 3ms.
[00:10:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_reindex_temp/rqzAdg2AT72mPToTz0EVvQ] update_mapping [_doc]
[00:10:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_reindex_temp/rqzAdg2AT72mPToTz0EVvQ] update_mapping [_doc]
[00:10:27]                 │ proc [kibana]   log   [12:19:20.845] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 64ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:20.851] [info][savedobjects-service] [.kibana] Processed 3 documents out of 3.
[00:10:27]                 │ proc [kibana]   log   [12:19:20.851] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:20.854] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 3ms.
[00:10:27]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] adding block write to indices [[.kibana_8.0.0_reindex_temp/rqzAdg2AT72mPToTz0EVvQ]]
[00:10:27]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:10:27]                 │ proc [kibana]   log   [12:19:20.913] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 59ms.
[00:10:27]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:10:27]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:10:27]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:10:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_001/9B_NiqsvTquGqIjmJTkY7A] create_mapping
[00:10:27]                 │ proc [kibana]   log   [12:19:21.059] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 146ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:21.064] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 5ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:21.068] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:21.075] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 7ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:21.078] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[00:10:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_001/9B_NiqsvTquGqIjmJTkY7A] update_mapping [_doc]
[00:10:27]                 │ proc [kibana]   log   [12:19:21.161] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 83ms.
[00:10:27]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] 24737 finished with response BulkByScrollResponse[took=33.3ms,timed_out=false,sliceId=null,updated=3,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:10:27]                 │ proc [kibana]   log   [12:19:21.265] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 104ms.
[00:10:27]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1622202043316176976] [.kibana_8.0.0_reindex_temp/rqzAdg2AT72mPToTz0EVvQ] deleting index
[00:10:27]                 │ proc [kibana]   log   [12:19:21.319] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 54ms.
[00:10:27]                 │ proc [kibana]   log   [12:19:21.319] [info][savedobjects-service] [.kibana] Migration completed after 996ms
[00:10:27]                 │ debg [spaces/selector] Migrated Kibana index after loading Kibana data
[00:10:27]                 │ debg [spaces/selector] Ensured that default space exists in .kibana
[00:10:27]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:10:29]                 │ debg SecurityPage.forceLogout
[00:10:29]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:10:29]                 │ debg Already on the login page, not forcing anything
[00:10:29]               └-> allows user to navigate to different spaces
[00:10:29]                 └-> "before each" hook: global before each for "allows user to navigate to different spaces"
[00:10:29]                 │ debg TestSubjects.exists(loginForm)
[00:10:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:10:29]                 │ debg Waiting for Login Form to appear.
[00:10:29]                 │ debg Waiting up to 100000ms for login form...
[00:10:29]                 │ debg TestSubjects.exists(loginForm)
[00:10:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:10:29]                 │ debg TestSubjects.setValue(loginUsername, elastic)
[00:10:29]                 │ debg TestSubjects.click(loginUsername)
[00:10:29]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:10:29]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:10:29]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:10:29]                 │ debg TestSubjects.click(loginPassword)
[00:10:29]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:10:29]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:10:29]                 │ debg TestSubjects.click(loginSubmit)
[00:10:29]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:10:29]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:10:30]                 │ proc [kibana]   log   [12:19:23.659] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:10:30]                 │ debg Waiting for login result, expected: spaceSelector.
[00:10:30]                 │ debg TestSubjects.find(kibanaSpaceSelector)
[00:10:30]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaSpaceSelector"]') with timeout=10000
[00:10:31]                 │ debg browser[INFO] http://localhost:61181/spaces/space_selector 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:10:31]                 │
[00:10:31]                 │ debg browser[INFO] http://localhost:61181/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:10:31]                 │ debg Finished login process, landed on space selector. currentUrl = http://localhost:61181/spaces/space_selector
[00:10:31]                 │ info SpaceSelectorPage:clickSpaceCard(another-space)
[00:10:31]                 │ debg TestSubjects.click(space-card-another-space)
[00:10:31]                 │ debg Find.clickByCssSelector('[data-test-subj="space-card-another-space"]') with timeout=10000
[00:10:31]                 │ debg Find.findByCssSelector('[data-test-subj="space-card-another-space"]') with timeout=10000
[00:10:32]                 │ debg ... sleep(1000) start
[00:10:32]                 │ debg browser[INFO] http://localhost:61181/s/another-space/app/home 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:10:32]                 │
[00:10:32]                 │ debg browser[INFO] http://localhost:61181/s/another-space/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:10:33]                 │ debg ... sleep(1000) end
[00:10:33]                 │ debg expectRoute(another-space, /app/home#/)
[00:10:33]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:10:34]                 │ debg openSpacesNav()
[00:10:34]                 │ debg TestSubjects.click(spacesNavSelector)
[00:10:34]                 │ debg Find.clickByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:10:34]                 │ debg Find.findByCssSelector('[data-test-subj="spacesNavSelector"]') with timeout=10000
[00:10:34]                 │ info SpaceSelectorPage:clickSpaceAvatar(default)
[00:10:34]                 │ debg TestSubjects.click(space-avatar-default)
[00:10:34]                 │ debg Find.clickByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:10:34]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:10:44]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:10:44]                 │      Wait timed out after 10036ms
[00:10:44]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:10:54]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:10:54]                 │      Wait timed out after 10016ms
[00:10:55]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:11:05]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:11:05]                 │      Wait timed out after 10057ms
[00:11:05]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:11:15]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:11:15]                 │      Wait timed out after 10014ms
[00:11:16]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:11:26]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:11:26]                 │      Wait timed out after 10061ms
[00:11:26]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:11:36]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:11:36]                 │      Wait timed out after 10021ms
[00:11:37]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:11:47]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:11:47]                 │      Wait timed out after 10048ms
[00:11:48]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:11:58]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:11:58]                 │      Wait timed out after 10058ms
[00:11:58]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:12:08]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:12:08]                 │      Wait timed out after 10012ms
[00:12:09]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:12:19]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:12:19]                 │      Wait timed out after 10051ms
[00:12:19]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:12:29]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:12:29]                 │      Wait timed out after 10059ms
[00:12:30]                 │ debg Find.findByCssSelector('[data-test-subj="space-avatar-default"]') with timeout=10000
[00:12:40]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:12:40]                 │      Wait timed out after 10044ms
[00:12:40]                 │ debg --- retry.try error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:12:40]                 │      Wait timed out after 10044ms
[00:12:40]                 │          at /dev/shm/workspace/parallel/18/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:12:40]                 │          at runMicrotasks (<anonymous>)
[00:12:40]                 │          at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:12:41]                 │ info Taking screenshot "/dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/screenshots/failure/Spaces app Spaces Space Selector allows user to navigate to different spaces.png"
[00:12:41]                 │ info Current URL is: http://localhost:61181/s/another-space/app/home#/
[00:12:41]                 │ info Saving page source to: /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/failure_debug/html/Spaces app Spaces Space Selector allows user to navigate to different spaces.html
[00:12:41]                 └- ✖ fail: Spaces app Spaces Space Selector allows user to navigate to different spaces
[00:12:41]                 │      retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:12:41]                 │ Wait timed out after 10044ms
[00:12:41]                 │     at /dev/shm/workspace/parallel/18/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:12:41]                 │     at runMicrotasks (<anonymous>)
[00:12:41]                 │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:12:41]                 │     at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:12:41]                 │     at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:12:41]                 │     at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
[00:12:41]                 │     at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/18/kibana/test/functional/services/common/find.ts:360:5)
[00:12:41]                 │     at TestSubjects.click (/dev/shm/workspace/parallel/18/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:12:41]                 │     at /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:189:9
[00:12:41]                 │     at runAttempt (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:12:41]                 │     at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:12:41]                 │     at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
[00:12:41]                 │     at SpaceSelectorPage.clickSpaceAvatar (/dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:187:14)
[00:12:41]                 │     at Context.<anonymous> (/dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/apps/spaces/spaces_selection.ts:53:9)
[00:12:41]                 │     at Object.apply (/dev/shm/workspace/parallel/18/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:12:41]                 │   Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
[00:12:41]                 │   Wait timed out after 10044ms
[00:12:41]                 │       at /dev/shm/workspace/parallel/18/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:12:41]                 │       at runMicrotasks (<anonymous>)
[00:12:41]                 │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:12:41]                 │       at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:12:41]                 │       at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:12:41]                 │       at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
[00:12:41]                 │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/18/kibana/test/functional/services/common/find.ts:360:5)
[00:12:41]                 │       at TestSubjects.click (/dev/shm/workspace/parallel/18/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:12:41]                 │       at /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:189:9
[00:12:41]                 │       at runAttempt (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:12:41]                 │       at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:12:41]                 │       at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
[00:12:41]                 │       at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
[00:12:41]                 │       at Context.<anonymous> (test/functional/apps/spaces/spaces_selection.ts:53:9)
[00:12:41]                 │       at Object.apply (/dev/shm/workspace/parallel/18/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:12:41]                 │       at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:12:41]                 │       at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:12:41]                 │       at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
[00:12:41]                 │       at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
[00:12:41]                 │       at Context.<anonymous> (test/functional/apps/spaces/spaces_selection.ts:53:9)
[00:12:41]                 │       at Object.apply (/dev/shm/workspace/parallel/18/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:12:41]                 │ 
[00:12:41]                 │ 

Stack Trace

Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="space-avatar-default"])
Wait timed out after 10044ms
    at /dev/shm/workspace/parallel/18/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/18/kibana/test/functional/services/common/find.ts:360:5)
    at TestSubjects.click (/dev/shm/workspace/parallel/18/kibana/test/functional/services/common/test_subjects.ts:105:5)
    at /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/page_objects/space_selector_page.ts:189:9
    at runAttempt (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
    at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
    at Context.<anonymous> (test/functional/apps/spaces/spaces_selection.ts:53:9)
    at Object.apply (/dev/shm/workspace/parallel/18/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry.ts:31:12)
    at SpaceSelectorPage.clickSpaceAvatar (test/functional/page_objects/space_selector_page.ts:187:14)
    at Context.<anonymous> (test/functional/apps/spaces/spaces_selection.ts:53:9)
    at Object.apply (/dev/shm/workspace/parallel/18/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Unknown metric groups

References to deprecated APIs

id before after diff
fleet 22 20 -2

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ymao1

@ymao1 ymao1 merged commit c0f9970 into elastic:master May 28, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request May 28, 2021
… export (elastic#100718)

* Adding feature flag for enabling rule import and export

* Removing item from docs

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 28, 2021
… 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]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request May 28, 2021
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Alerting] Feature flag for importing/exporting rules
5 participants