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

[Lens] Support delay agg #108201

Closed
Tracked by #57706
Dosant opened this issue Aug 11, 2021 · 3 comments
Closed
Tracked by #57706

[Lens] Support delay agg #108201

Dosant opened this issue Aug 11, 2021 · 3 comments
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@Dosant
Copy link
Contributor

Dosant commented Aug 11, 2021

Describe the feature:

Elasticsearch exposes dev only delay agg that is usefull to simulate long-running searches.
Kibana supports this agg in aggregation based visualization, but it would be very helpful to have it in Lens

if (this.initializerContext.config.get().search.aggs.shardDelay.enabled) {
aggs.types.registerBucket(SHARD_DELAY_AGG_NAME, getShardDelayBucketAgg);
expressions.registerFunction(aggShardDelay);
}

Describe a specific use case for the feature:

Simulate long-running searches in Lens

@Dosant Dosant added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Aug 11, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@stratoula
Copy link
Contributor

cc @ghudgins

@flash1293
Copy link
Contributor

This is supported by setting ELASTIC_LENS_DELAY_SECONDS on the window object:

To simulate long running searches, set `data.search.aggs.shardDelay.enabled` in your `kibana.dev.yml` to true and set the dealy via console in the browser (e.g. for a 20 seconds delay): `window.ELASTIC_LENS_DELAY_SECONDS=20`.

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:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants