Skip to content

Conversation

@poffdeluxe
Copy link
Contributor

Summary

Fixes #78498

With variables in last release, it became evident that the datasource UIs don't like expressions with args that also contain expressions. So, if you're trying to use variables in an expression like essql query={string "select * from " {var index_name}} you're going to have an error get thrown when navigating to the datasource UI.

For now, I think it'd be smart to just disable the datasource editing UI if there are expressions in the arguments.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@poffdeluxe poffdeluxe added review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort v8.0.0 release_note:skip Skip the PR/issue when compiling release notes impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. v7.10.0 v7.9.3 labels Oct 2, 2020
@poffdeluxe poffdeluxe requested a review from a team as a code owner October 2, 2020 21:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@poffdeluxe
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@crob611 crob611 left a comment

Choose a reason for hiding this comment

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

Looks good to me. A few small nits that you can clean up if you agree.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
canvas 1.5MB 1.5MB +257.0B

distributable file count

id before after diff
default 47107 47108 +1

page load bundle size

id before after diff
canvas 1.0MB 1.0MB +496.0B

History

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

@poffdeluxe poffdeluxe merged commit ead4ebc into elastic:master Oct 5, 2020
@poffdeluxe poffdeluxe deleted the canvas-expression-datasource-fix branch October 5, 2020 17:52
poffdeluxe added a commit to poffdeluxe/kibana that referenced this pull request Oct 5, 2020
… argument (elastic#79369)

* Disable datasource UI when expression contains an expression argument

* Removing unnecessary type coercion
poffdeluxe added a commit to poffdeluxe/kibana that referenced this pull request Oct 5, 2020
… argument (elastic#79369)

* Disable datasource UI when expression contains an expression argument

* Removing unnecessary type coercion
# Conflicts:
#	x-pack/plugins/canvas/storybook/webpack.config.js
poffdeluxe added a commit that referenced this pull request Oct 5, 2020
… argument (#79369) (#79523)

* Disable datasource UI when expression contains an expression argument

* Removing unnecessary type coercion
poffdeluxe added a commit that referenced this pull request Oct 6, 2020
…ession argument (#79369) (#79526)

* [Canvas] Disable datasource UI when expression contains an expression argument (#79369)

* Disable datasource UI when expression contains an expression argument

* Removing unnecessary type coercion
# Conflicts:
#	x-pack/plugins/canvas/storybook/webpack.config.js

* Fix es service mock for datasource component test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.9.3 v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Canvas] Datasource UIs don't properly handle args that have expressions as value

4 participants