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

[Dashboard]: Fixes disabled viz filter is applied #101859

Merged
merged 3 commits into from
Jun 14, 2021

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Jun 10, 2021

Summary

Closes #101720

We found out that if a visualization has a disabled filter and is embedded on a dashboard, the filter is applied.

For example here, when I am on the viz editor, the pie chart is rendered correctly but when I embedded on a dashboard it appears with no results.

image

image

The problem was on the kibanaFilter expression. The disabled prop is always set to false. I changed it to be dynamically set.

Checklist

@stratoula stratoula changed the title Fixes filter is applied even if is disabled on a dashboard Fixes: filter is applied even if is disabled on a dashboard Jun 10, 2021
@stratoula stratoula added Feature:Filters release_note:fix v7.14.0 v8.0.0 Feature:Dashboard Dashboard related features Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jun 10, 2021
@stratoula stratoula marked this pull request as ready for review June 10, 2021 10:39
@stratoula stratoula requested a review from a team as a code owner June 10, 2021 10:39
@elasticmachine
Copy link
Contributor

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

@kibanamachine kibanamachine added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Jun 10, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@stratoula stratoula added 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 labels Jun 10, 2021
@stratoula stratoula changed the title Fixes: filter is applied even if is disabled on a dashboard [Dashboard]: Fixes disabled viz filter is applied Jun 10, 2021
@stratoula
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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
data 3266 3270 +4

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 840.1KB 840.3KB +238.0B
Unknown metric groups

API count

id before after diff
data 3827 3831 +4

History

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

Copy link
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

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

Expressions code change LGTM.

@stratoula stratoula merged commit 06aaa52 into elastic:master Jun 14, 2021
stratoula added a commit to stratoula/kibana that referenced this pull request Jun 14, 2021
* Fixes filter is applied even if is disabled on a dashboard

* Fix 18n problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jun 14, 2021
* master:
  [Security solution][Endpoint] Removes zip compression when creating artifacts (elastic#101379)
  [Dashboard]: Fixes disabled viz filter is applied (elastic#101859)
  [Discover] Deangularization of search embeddable (elastic#100552)
stratoula added a commit that referenced this pull request Jun 14, 2021
* Fixes filter is applied even if is disabled on a dashboard

* Fix 18n problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
cuff-links pushed a commit to cuff-links/kibana that referenced this pull request Jun 15, 2021
* Fixes filter is applied even if is disabled on a dashboard

* Fix 18n problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
stratoula added a commit to stratoula/kibana that referenced this pull request Jun 18, 2021
* Fixes filter is applied even if is disabled on a dashboard

* Fix 18n problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
stratoula added a commit that referenced this pull request Jun 18, 2021
* Fixes filter is applied even if is disabled on a dashboard

* Fix 18n problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Dashboard Dashboard related features Feature:Filters Feature:Visualizations Generic visualization features (in case no more specific feature label is available) 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:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.13.3 v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Disabled filter is applied when a viz is embedded
4 participants