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] Fix bugs in Lens filters #56441

Merged
merged 4 commits into from
Feb 3, 2020

Conversation

wylieconlon
Copy link
Contributor

@wylieconlon wylieconlon commented Jan 30, 2020

Release note

Fixes bugs in Lens display of filters. When navigating to Lens from a dashboard, only pinned filters are used now. Also, when navigating to a previously-saved Lens visualization, Lens now shows all of the filters that were saved with the visualization. Now Lens is accurately showing all saved filters.

Notes

Fixes #54941 and fixes #55603

The bugs are caused by a change to the TopNav component, previously filters were displayed based on Lens's internal state, but now use the filterManager component. We did not write code to call setAppFilters on the filter manager at the appropriate times.

Steps to verify #55603:

  1. Go to a dashboard and add a pinned filter and a regular filter
  2. Go to edit mode, and create new > Lens visualization
  3. Notice that only the pinned filter is shown in Lens
  4. If you go from Lens -> Visualize -> Vertical bar, the pinned filter is the only one shown

Steps to verify #54941:

  1. Save a Lens visualization with filters, such as:

Screenshot 2020-01-30 15 31 46

2. Refresh the page

@wylieconlon wylieconlon added release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 Feature:Lens v7.7.0 v7.6.1 labels Jan 30, 2020
@wylieconlon wylieconlon requested review from timroes and a team January 30, 2020 20:38
@elasticmachine
Copy link
Contributor

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

@wylieconlon
Copy link
Contributor Author

I'm going to update this PR to fix another bug: #55603

@wylieconlon wylieconlon changed the title [Lens] Fix bug where filters were not displayed [Lens] Fix bugs in Lens filters Jan 31, 2020
@timroes
Copy link
Contributor

timroes commented Feb 3, 2020

@elasticmachine merge upstream

Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Tested on Chrome Linux, LGTM. Code LGTM. Found another issue with filters, but I think it's out of the scope of this PR, so I'll open a separate issue for it.

@timroes
Copy link
Contributor

timroes commented Feb 3, 2020

Follow up issue: #56627

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@wylieconlon wylieconlon merged commit 4f4d3d7 into elastic:master Feb 3, 2020
@wylieconlon wylieconlon deleted the lens/fix-filters-rendering branch February 3, 2020 16:19
wylieconlon pushed a commit to wylieconlon/kibana that referenced this pull request Feb 3, 2020
* [Lens] Fix bug where filters were not displayed

* Fix elastic#55603

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@wylieconlon wylieconlon added v7.6.0 and removed v7.6.1 labels Feb 3, 2020
wylieconlon pushed a commit that referenced this pull request Feb 3, 2020
* [Lens] Fix bug where filters were not displayed

* Fix #55603

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
jfsiii pushed a commit to jfsiii/kibana that referenced this pull request Feb 4, 2020
* [Lens] Fix bug where filters were not displayed

* Fix elastic#55603

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
cauemarcondes pushed a commit to cauemarcondes/kibana that referenced this pull request Feb 5, 2020
* [Lens] Fix bug where filters were not displayed

* Fix elastic#55603

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
majagrubic pushed a commit to majagrubic/kibana that referenced this pull request Feb 10, 2020
* [Lens] Fix bug where filters were not displayed

* Fix elastic#55603

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
wylieconlon pushed a commit that referenced this pull request Feb 14, 2020
* [Lens] Fix bugs in Lens filters (#56441)

* [Lens] Fix bug where filters were not displayed

* Fix #55603

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Fix bugs

* Update

* Actually fix infinite loop due to referential equality

* Update snapshot

* Build filters explicitly

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.6.0 v7.7.0 v8.0.0
Projects
None yet
4 participants