Skip to content

removing indexPattern from vega/tsvb/timelion request handler - #26007

Merged
ppisljar merged 1 commit into
elastic:masterfrom
ppisljar:ref/vegaTsvbTimelionRH
Nov 21, 2018
Merged

ppisljar merged 1 commit into
elastic:masterfrom
ppisljar:ref/vegaTsvbTimelionRH

Conversation

@ppisljar

Copy link
Copy Markdown
Contributor

Summary

removes unused aggs.indexPattern from vega, tsvb and timelion request handler

preparation for #25996

QA: no functional changes

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@ppisljar ppisljar added review v7.0.0 Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v6.6.0 labels Nov 21, 2018
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app

extended: {
es: {
filter: buildEsQuery(aggs.indexPattern, [query], filters)
filter: buildEsQuery(undefined, [query], filters)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the index pattern is actually defined in the expression (and there could be multiple of them) ...
so the aggs.indexPattern was not set anyway. In the future we would need to execute this on the server side with appropriate indexPatterns in order to support KQL fully

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@ppisljar

Copy link
Copy Markdown
Contributor Author

retest

@markov00 markov00 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR #26006 will remove the use of buildEsQuery from TSVB moving it serverside.
I think for Vega and Timelion we need to fix also buildEsQuery to accept undefined index pattern and ignore Kuery query, if not this will throw an error on building the ES request using AST

After a chat with Peter, everything is fine as this PR will not introduce any fix at all in the buildEsQuery, everything is exactly the same as in the current master version.

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v6.6.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants