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

Introduce support for the session user data. #98049

Closed

Conversation

azasypkin
Copy link
Member

@azasypkin azasypkin commented Apr 22, 2021

Summary

In this PR we're introducing a new session user data API exposed as a part of the Security plugin public contract:

// `setup` contract
export interface SecurityPluginSetup {
  .....
  readonly session: {
    readonly userData: { registerScope: (scopePrefix: string) => SessionUserDataStorageScope };
  };
}

// `start` contract
export interface SecurityPluginStart {
  .....
  readonly session: {
    readonly hasActiveSession: (request: KibanaRequest) => Promise<boolean>;
    readonly userData: {
      getStorage: (scope: SessionUserDataStorageScope) => PublicMethodsOf<SessionUserDataStorage>;
    };
  };
}

// Consumer `setup`
setup: (core: CoreSetup<{ security: SecurityPluginSetup}>, { security }) => {
  this.#userDataStorageScope = security.session.userData.registerScope('xpack.myPlugin');
}

// Consumer `start`
start: (core: CoreStart, { security }) => {
  const userDataStorage = security.session.userData.getStorage(this.#userDataStorageScope);
}

// Consumer HTTP handler
async handler(request: KibanaRequest) {
  if (await security.session.hasActiveSession(request)) {
    await userDataStorage.set(request, 'some-data-key', 'some-data');
  }
  .....
  const data = await userDataStorage.get<string>(request, 'some-data-key'));
  .....
  await userDataStorage.remove(request, 'some-data-key');
}

Fixes: #92558

@azasypkin azasypkin added release_note:enhancement Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! enhancement New value added to drive a business result Feature:Security/Authentication Platform Security - Authentication NeededFor:AppSearch v7.14.0 labels Apr 22, 2021
@spalger
Copy link
Contributor

spalger commented Apr 22, 2021

jenkins, test this (necessary for Jenkins update)

1 similar comment
@spalger
Copy link
Contributor

spalger commented Apr 22, 2021

jenkins, test this (necessary for Jenkins update)

@azasypkin
Copy link
Member Author

Hey @jgr, would you mind confirming if this PR works for your use case? Once we know it's what you're looking for I'll proceed with the tests, docs and whatnot.

@azasypkin azasypkin requested a review from jgr April 27, 2021 12:23
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Search Sessions Integration.x-pack/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session·ts.Dashboard save a search sessions Restore using non-existing sessionId errors out. Refresh starts a new session and completes. Back button restores a session.

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Dashboard
[00:00:00]           └-> "before all" hook in "Dashboard"
[00:00:00]           └-> "before all" hook in "Dashboard"
[00:00:00]             │ info [logstash_functional] Loading "mappings.json"
[00:00:00]             │ info [logstash_functional] Loading "data.json.gz"
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [logstash-2015.09.21/S7rtMBwNQBidmEj7o8kAZw] update_mapping [_doc]
[00:00:05]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [logstash-2015.09.20/oCdsHp7iRza_GwnAemfA6A] update_mapping [_doc]
[00:00:10]             │ info progress: 9617
[00:00:13]             │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:13]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:13]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:13]             │ info [dashboard/async_search] Loading "mappings.json"
[00:00:13]             │ info [dashboard/async_search] Loading "data.json"
[00:00:14]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_001/isq3xNPsSdy85tp-UUpRfQ] deleting index
[00:00:14]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_8.0.0_001/IzShHlr0SByFIzB7a0hPkg] deleting index
[00:00:14]             │ info [dashboard/async_search] Deleted existing index ".kibana_8.0.0_001"
[00:00:14]             │ info [dashboard/async_search] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:00:14]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:00:14]             │ info [dashboard/async_search] Created index ".kibana"
[00:00:14]             │ debg [dashboard/async_search] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:14]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_1] creating index, cause [api], templates [], shards [1]/[0]
[00:00:14]             │ info [dashboard/async_search] Created index ".kibana_task_manager_1"
[00:00:14]             │ debg [dashboard/async_search] ".kibana_task_manager_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:00:14]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana/L8AuO70mR0GhUXASzrStKw] update_mapping [_doc]
[00:00:14]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana/L8AuO70mR0GhUXASzrStKw] update_mapping [_doc]
[00:00:14]             │ info [dashboard/async_search] Indexed 9 docs into ".kibana"
[00:00:14]             │ info [dashboard/async_search] Indexed 1 docs into ".kibana_task_manager_1"
[00:00:14]             │ debg Migrating saved objects
[00:00:14]             │ proc [kibana]   log   [13:48:28.473] [info][savedobjects-service] [.kibana_task_manager] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 9ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.480] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 18ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.483] [info][savedobjects-service] [.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> SET_SOURCE_WRITE_BLOCK. took: 10ms.
[00:00:14]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] adding block write to indices [[.kibana/L8AuO70mR0GhUXASzrStKw]]
[00:00:14]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] adding block write to indices [[.kibana_task_manager_1/t8ZPgo5YSk2QmSTfIKLbCA]]
[00:00:14]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] completed adding block write to indices [.kibana]
[00:00:14]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] completed adding block write to indices [.kibana_task_manager_1]
[00:00:14]             │ proc [kibana]   log   [13:48:28.564] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 84ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.581] [info][savedobjects-service] [.kibana_task_manager] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 98ms.
[00:00:14]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:14]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:00:14]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:00:14]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:00:14]             │ proc [kibana]   log   [13:48:28.686] [info][savedobjects-service] [.kibana_task_manager] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 105ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.692] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX. took: 128ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.701] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 15ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.717] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK. took: 25ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.722] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 21ms.
[00:00:14]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_8.0.0_reindex_temp/A_EoJ4CBTlGHnN1hxV1MZw] update_mapping [_doc]
[00:00:14]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.tasks] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:14]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] updating number_of_replicas to [0] for indices [.tasks]
[00:00:14]             │ proc [kibana]   log   [13:48:28.776] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_READ. took: 54ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.790] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 14ms.
[00:00:14]             │ proc [kibana]   log   [13:48:28.800] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 10ms.
[00:00:14]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] adding block write to indices [[.kibana_task_manager_8.0.0_reindex_temp/A_EoJ4CBTlGHnN1hxV1MZw]]
[00:00:14]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] completed adding block write to indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:00:14]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] 2583 finished with response BulkByScrollResponse[took=33.8ms,timed_out=false,sliceId=null,updated=0,created=9,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:14]             │ proc [kibana]   log   [13:48:28.897] [info][savedobjects-service] [.kibana_task_manager] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 97ms.
[00:00:14]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] applying create index request using existing index [.kibana_task_manager_8.0.0_reindex_temp] metadata
[00:00:14]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:00:14]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:00:14]             │ proc [kibana]   log   [13:48:28.942] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE. took: 225ms.
[00:00:14]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana/L8AuO70mR0GhUXASzrStKw] deleting index
[00:00:14]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_8.0.0_001/67EGYubxQ1CEmO5j2OhVEQ] create_mapping
[00:00:14]             │ proc [kibana]   log   [13:48:29.005] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK. took: 63ms.
[00:00:14]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] adding block write to indices [[.kibana_pre6.5.0_001/cPNGHuM7Sc6MUMsYsV_MaA]]
[00:00:14]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_task_manager_8.0.0_001][0]]"
[00:00:15]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:00:15]             │ proc [kibana]   log   [13:48:29.087] [info][savedobjects-service] [.kibana_task_manager] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH. took: 190ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.100] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS. took: 13ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.109] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 104ms.
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_8.0.0_001/67EGYubxQ1CEmO5j2OhVEQ] update_mapping [_doc]
[00:00:15]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:00:15]             │ proc [kibana]   log   [13:48:29.151] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 51ms.
[00:00:15]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:00:15]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] 2663 finished with response BulkByScrollResponse[took=28.2ms,timed_out=false,sliceId=null,updated=1,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:15]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_reindex_temp][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_reindex_temp][0]]"
[00:00:15]             │ proc [kibana]   log   [13:48:29.217] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 107ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.226] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 10ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.239] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 13ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.259] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 108ms.
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_reindex_temp/ynsSsodgTcihNHLSj6TiPw] update_mapping [_doc]
[00:00:15]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_task_manager_8.0.0_reindex_temp/A_EoJ4CBTlGHnN1hxV1MZw] deleting index
[00:00:15]             │ proc [kibana]   log   [13:48:29.336] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 77ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.337] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 873ms
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_reindex_temp/ynsSsodgTcihNHLSj6TiPw] update_mapping [_doc]
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_reindex_temp/ynsSsodgTcihNHLSj6TiPw] update_mapping [_doc]
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_reindex_temp/ynsSsodgTcihNHLSj6TiPw] update_mapping [_doc]
[00:00:15]             │ proc [kibana]   log   [13:48:29.439] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_READ. took: 200ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.450] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 11ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.461] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 11ms.
[00:00:15]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] adding block write to indices [[.kibana_8.0.0_reindex_temp/ynsSsodgTcihNHLSj6TiPw]]
[00:00:15]             │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:00:15]             │ proc [kibana]   log   [13:48:29.510] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 49ms.
[00:00:15]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:00:15]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:00:15]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_001/i6qSqtsNRZ-SEMOjGROsAA] create_mapping
[00:00:15]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_8.0.0_001][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_8.0.0_001][0]]"
[00:00:15]             │ proc [kibana]   log   [13:48:29.628] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH. took: 118ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.648] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS. took: 20ms.
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_001/i6qSqtsNRZ-SEMOjGROsAA] update_mapping [_doc]
[00:00:15]             │ proc [kibana]   log   [13:48:29.740] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 92ms.
[00:00:15]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] 2743 finished with response BulkByScrollResponse[took=34.6ms,timed_out=false,sliceId=null,updated=9,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:15]             │ proc [kibana]   log   [13:48:29.859] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 119ms.
[00:00:15]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_reindex_temp/ynsSsodgTcihNHLSj6TiPw] deleting index
[00:00:15]             │ proc [kibana]   log   [13:48:29.962] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 103ms.
[00:00:15]             │ proc [kibana]   log   [13:48:29.963] [info][savedobjects-service] [.kibana] Migration completed after 1501ms
[00:00:15]             │ debg [dashboard/async_search] Migrated Kibana index after loading Kibana data
[00:00:15]             │ debg [dashboard/async_search] Ensured that default space exists in .kibana
[00:00:15]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1619526149561861823] [.kibana_8.0.0_001/i6qSqtsNRZ-SEMOjGROsAA] update_mapping [_doc]
[00:00:17]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:00:18]             │ debg replacing kibana config doc: {"search:timeout":10000}
[00:00:19]             │ debg navigating to dashboard url: http://localhost:61221/app/dashboards#/list
[00:00:19]             │ debg navigate to: http://localhost:61221/app/dashboards#/list
[00:00:19]             │ debg browser[INFO] http://localhost:61221/login?next=%2Fapp%2Fdashboards%3F_t%3D1619531313608#/list 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:00:19]             │
[00:00:19]             │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:19]             │ debg ... sleep(700) start
[00:00:20]             │ debg ... sleep(700) end
[00:00:20]             │ debg returned from get, calling refresh
[00:00:21]             │ debg browser[INFO] http://localhost:61221/login?next=%2Fapp%2Fdashboards%3F_t%3D1619531313608#/list 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:00:21]             │
[00:00:21]             │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:21]             │ debg currentUrl = http://localhost:61221/login?next=%2Fapp%2Fdashboards%3F_t%3D1619531313608#/list
[00:00:21]             │          appUrl = http://localhost:61221/app/dashboards#/list
[00:00:21]             │ debg TestSubjects.find(kibanaChrome)
[00:00:21]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:22]             │ERROR browser[SEVERE] http://localhost:61221/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:22]             │ERROR browser[SEVERE] http://localhost:61221/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:22]             │ debg browser[INFO] http://localhost:61221/42447/bundles/core/core.entry.js 12:151721 "Detected an unhandled Promise rejection.
[00:00:22]             │      Error: Unauthorized"
[00:00:22]             │ERROR browser[SEVERE] http://localhost:61221/42447/bundles/core/core.entry.js 5:2514 
[00:00:22]             │ debg Found login page
[00:00:22]             │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:22]             │ debg TestSubjects.click(loginUsername)
[00:00:22]             │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:22]             │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:22]             │ERROR browser[SEVERE] http://localhost:61221/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:22]             │ERROR browser[SEVERE] http://localhost:61221/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:23]             │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:23]             │ debg TestSubjects.click(loginPassword)
[00:00:23]             │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:23]             │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:23]             │ debg TestSubjects.click(loginSubmit)
[00:00:23]             │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:23]             │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:23]             │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:00:23]             │ proc [kibana]   log   [13:48:37.345] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:23]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:23]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:26]             │ debg browser[INFO] http://localhost:61221/app/dashboards?_t=1619531313608#/list 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:00:26]             │
[00:00:26]             │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:26]             │ debg browser[INFO] http://localhost:61221/app/dashboards?_t=1619531320266#/list 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:00:26]             │
[00:00:26]             │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:26]             │ debg Finished login process currentUrl = http://localhost:61221/app/dashboards#/list
[00:00:27]             │ debg ... sleep(501) start
[00:00:27]             │ debg ... sleep(501) end
[00:00:27]             │ debg in navigateTo url = http://localhost:61221/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:00:27]             │ debg --- retry.try error: URL changed, waiting for it to settle
[00:00:28]             │ debg ... sleep(501) start
[00:00:28]             │ debg ... sleep(501) end
[00:00:28]             │ debg in navigateTo url = http://localhost:61221/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:00:28]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:28]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:31]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:21]           └-: save a search sessions
[00:02:21]             └-> "before all" hook for "Restore using non-existing sessionId errors out. Refresh starts a new session and completes. Back button restores a session."
[00:02:21]             └-> "before all" hook for "Restore using non-existing sessionId errors out. Refresh starts a new session and completes. Back button restores a session."
[00:02:21]               │ debg navigating to dashboard url: http://localhost:61221/app/dashboards#/list
[00:02:21]               │ debg navigate to: http://localhost:61221/app/dashboards#/list
[00:02:21]               │ debg browser[INFO] http://localhost:61221/app/dashboards?_t=1619531435253#/list 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:02:21]               │
[00:02:21]               │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:21]               │ debg ... sleep(700) start
[00:02:22]               │ debg ... sleep(700) end
[00:02:22]               │ debg returned from get, calling refresh
[00:02:22]               │ERROR browser[SEVERE] http://localhost:61221/42447/bundles/core/core.entry.js 12:150793 TypeError: Failed to fetch
[00:02:22]               │          at fetch_Fetch.fetchResponse (http://localhost:61221/42447/bundles/core/core.entry.js:6:26193)
[00:02:22]               │          at async http://localhost:61221/42447/bundles/core/core.entry.js:6:24090
[00:02:22]               │          at async http://localhost:61221/42447/bundles/core/core.entry.js:6:23996
[00:02:22]               │ debg browser[INFO] http://localhost:61221/app/dashboards?_t=1619531435253#/list 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:02:22]               │
[00:02:22]               │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:23]               │ debg currentUrl = http://localhost:61221/app/dashboards#/list
[00:02:23]               │          appUrl = http://localhost:61221/app/dashboards#/list
[00:02:23]               │ debg TestSubjects.find(kibanaChrome)
[00:02:23]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:23]               │ debg ... sleep(501) start
[00:02:24]               │ debg ... sleep(501) end
[00:02:24]               │ debg in navigateTo url = http://localhost:61221/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:02:24]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:24]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:26]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:27]             └-> Restore using non-existing sessionId errors out. Refresh starts a new session and completes. Back button restores a session.
[00:02:27]               └-> "before each" hook: global before each for "Restore using non-existing sessionId errors out. Refresh starts a new session and completes. Back button restores a session."
[00:02:27]               └-> "before each" hook for "Restore using non-existing sessionId errors out. Refresh starts a new session and completes. Back button restores a session."
[00:02:27]               │ debg Load Saved Dashboard Not Delayed
[00:02:27]               │ debg gotoDashboardLandingPage
[00:02:27]               │ debg onDashboardLandingPage
[00:02:27]               │ debg TestSubjects.exists(dashboardLandingPage)
[00:02:27]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=5000
[00:02:27]               │ debg searchForItemWithName: Not Delayed
[00:02:27]               │ debg TestSubjects.find(tableListSearchBox)
[00:02:27]               │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:02:27]               │ debg isGlobalLoadingIndicatorVisible
[00:02:27]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:27]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:29]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:29]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:29]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:29]               │ debg TestSubjects.click(dashboardListingTitleLink-Not-Delayed)
[00:02:29]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardListingTitleLink-Not-Delayed"]') with timeout=10000
[00:02:29]               │ debg Find.findByCssSelector('[data-test-subj="dashboardListingTitleLink-Not-Delayed"]') with timeout=10000
[00:02:29]               │ debg isGlobalLoadingIndicatorVisible
[00:02:29]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:29]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:29]               │ debg browser[INFO] http://localhost:61221/app/dashboards#/view/41e77910-69d9-11ea-a14d-e341629a29e6?_g=(filters:!()) 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:02:29]               │
[00:02:29]               │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:31]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:31]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:31]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:32]               │ debg TestSubjects.missingOrFail(dashboardLandingPage)
[00:02:32]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=10000
[00:02:32]               │ debg isGlobalLoadingIndicatorVisible
[00:02:32]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:32]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:32]               │ debg browser[INFO] http://localhost:61221/app/dashboards?_t=1619531446649#/view/41e77910-69d9-11ea-a14d-e341629a29e6?_g=(filters:!())&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!t,title:%27Not%20Delayed%27,viewMode:view)&searchSessionId=__fake__ 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:02:32]               │
[00:02:32]               │ debg browser[INFO] http://localhost:61221/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:34]               │ERROR browser[SEVERE] http://localhost:61221/api/alerts/list_alert_types - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:02:34]               │ERROR browser[SEVERE] http://localhost:61221/api/saved_objects/_find?fields=title&per_page=10000&type=index-pattern - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:02:34]               │ERROR browser[SEVERE] http://localhost:61221/api/_newsfeed-FTS-external-service-simulators/kibana/v8.0.0.json - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:02:34]               │ERROR browser[SEVERE] http://localhost:61221/42447/bundles/plugin/newsfeed/kibana/newsfeed.plugin.js 0:18527 TypeError: Failed to fetch
[00:02:34]               │          at fetch_Fetch.fetchResponse (http://localhost:61221/42447/bundles/core/core.entry.js:6:26193)
[00:02:34]               │          at async http://localhost:61221/42447/bundles/core/core.entry.js:6:24090
[00:02:34]               │          at async http://localhost:61221/42447/bundles/core/core.entry.js:6:23996
[00:02:34]               │ERROR browser[SEVERE] http://localhost:61221/internal/security/me - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:02:34]               │ debg browser[INFO] http://localhost:61221/42447/bundles/core/core.entry.js 12:151721 "Detected an unhandled Promise rejection.
[00:02:34]               │      TypeError: Failed to fetch"
[00:02:34]               │ERROR browser[SEVERE] http://localhost:61221/42447/bundles/core/core.entry.js 5:2514 
[00:02:34]               │ debg browser[INFO] http://localhost:61221/42447/bundles/core/core.entry.js 12:151721 "Detected an unhandled Promise rejection.
[00:02:34]               │      TypeError: Failed to fetch"
[00:02:34]               │ERROR browser[SEVERE] http://localhost:61221/42447/bundles/core/core.entry.js 5:2514 
[00:02:34]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:34]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:34]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:34]               │ debg Waiting up to 20000ms for searchSessions indicator to get into state = restored...
[00:02:34]               │ debg TestSubjects.find(searchSessionIndicator)
[00:02:34]               │ debg Find.findByCssSelector('[data-test-subj="searchSessionIndicator"]') with timeout=10000
[00:02:44]               │ debg --- retry.waitFor error: Waiting for element to be located By(css selector, [data-test-subj="searchSessionIndicator"])
[00:02:44]               │      Wait timed out after 10021ms
[00:02:45]               │ debg TestSubjects.find(searchSessionIndicator)
[00:02:45]               │ debg Find.findByCssSelector('[data-test-subj="searchSessionIndicator"]') with timeout=10000
[00:02:55]               │ debg --- retry.waitFor error: Waiting for element to be located By(css selector, [data-test-subj="searchSessionIndicator"])
[00:02:55]               │      Wait timed out after 10013ms
[00:02:55]               │ info Taking screenshot "/dev/shm/workspace/parallel/22/kibana/x-pack/test/functional/screenshots/failure/Dashboard save a search sessions Restore using non-existing sessionId errors out_ Refresh starts a new session and completes_ Back button restores a session_.png"
[00:02:56]               │ info Current URL is: http://localhost:61221/app/dashboards#/view/41e77910-69d9-11ea-a14d-e341629a29e6?_g=(filters:!())&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!t,title:%27Not%20Delayed%27,viewMode:view)&searchSessionId=__fake__
[00:02:56]               │ info Saving page source to: /dev/shm/workspace/parallel/22/kibana/x-pack/test/functional/failure_debug/html/Dashboard save a search sessions Restore using non-existing sessionId errors out_ Refresh starts a new session and completes_ Back button restores a session_.html
[00:02:56]               └- ✖ fail: Dashboard save a search sessions Restore using non-existing sessionId errors out. Refresh starts a new session and completes. Back button restores a session.
[00:02:56]               │      Error: timed out waiting for searchSessions indicator to get into state = restored -- last error: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="searchSessionIndicator"])
[00:02:56]               │ Wait timed out after 10013ms
[00:02:56]               │     at /dev/shm/workspace/parallel/22/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:02:56]               │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:02:56]               │       at onFailure (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
[00:02:56]               │       at retryForSuccess (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:02:56]               │       at retryForTruthy (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
[00:02:56]               │       at Retry.waitFor (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry.ts:60:7)
[00:02:56]               │       at Context.<anonymous> (test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts:42:7)
[00:02:56]               │       at Object.apply (/dev/shm/workspace/parallel/22/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:56]               │ 
[00:02:56]               │ 

Stack Trace

Error: timed out waiting for searchSessions indicator to get into state = restored -- last error: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="searchSessionIndicator"])
Wait timed out after 10013ms
    at /dev/shm/workspace/parallel/22/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at onFailure (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry_for_truthy.ts:39:13)
    at retryForSuccess (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at retryForTruthy (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry_for_truthy.ts:27:3)
    at Retry.waitFor (/dev/shm/workspace/parallel/22/kibana/test/common/services/retry/retry.ts:60:7)
    at Context.<anonymous> (test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts:42:7)
    at Object.apply (/dev/shm/workspace/parallel/22/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
security 31 41 +10

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
security 10 11 +1
Unknown metric groups

API count

id before after diff
security 71 92 +21

History

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

@azasypkin azasypkin added v7.16.0 and removed v7.14.0 labels Jun 7, 2021
@azasypkin azasypkin removed the v7.16.0 label Aug 2, 2021
@azasypkin
Copy link
Member Author

Monday backlog cleanup: I'm closing this one as it seems there is not enough demand for this feature yet. Feel free to comment here if anything changes @jgr .

@azasypkin azasypkin closed this Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Security/Authentication Platform Security - Authentication feedback_needed NeededFor:AppSearch release_note:enhancement Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discuss] A way for plugins to store and retrieve their own data from the server side session
3 participants