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

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

Merged
merged 1 commit into from
Nov 21, 2018

Conversation

ppisljar
Copy link
Member

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 Visualization editors, elastic-charts and infrastructure v6.6.0 labels Nov 21, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@@ -41,7 +41,7 @@ const TimelionRequestHandlerProvider = function (Private, Notifier, $http) {
sheet: [expression],
extended: {
es: {
filter: buildEsQuery(aggs.indexPattern, [query], filters)
filter: buildEsQuery(undefined, [query], filters)
Copy link
Member 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
Contributor

💔 Build Failed

@ppisljar
Copy link
Member Author

retest

Copy link
Member

@markov00 markov00 left a comment

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
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 Visualization editors, elastic-charts and infrastructure v6.6.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants