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 filters reappearing in the saved object when saving #110460

Merged
merged 5 commits into from Aug 31, 2021

Conversation

mbondyra
Copy link
Contributor

@mbondyra mbondyra commented Aug 30, 2021

Summary

Fixes #110248

Also fixes the issue with loading empty document from the search bar. To reproduce, load existing document and then search for Lens new document in the top search bar - the bug was caused by not properly cleaning initial state for the empty state.

Checklist

@mbondyra mbondyra added release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 Feature:Lens v7.15.0 v7.16.0 labels Aug 30, 2021
@mbondyra mbondyra requested a review from a team August 30, 2021 11:32
@elasticmachine
Copy link
Contributor

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

@mbondyra mbondyra changed the title [Lens] Fix filters bug [Lens] Fix filters reappearing in the saved object when saving Aug 30, 2021
@@ -384,51 +348,5 @@ export function getLastKnownDocWithoutPinnedFilters(doc?: Document) {
: doc;
}

export const getPersistedDoc = async ({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this piece is moved to another file.

@mbondyra mbondyra added the auto-backport Deprecated: Automatically backport this PR after it's merged label Aug 30, 2021
Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Code LGTM, I tested it locally in Safari and works fine. I tested various combinations and all of them work fine :)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.6MB 1.6MB -16.1KB

Page load bundle

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

id before after diff
lens 30.5KB 30.7KB +200.0B

History

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

@mbondyra mbondyra merged commit 0346951 into elastic:master Aug 31, 2021
@mbondyra mbondyra deleted the lens/fix_filters_bug branch August 31, 2021 09:51
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 31, 2021
…ic#110460)

* bugs fixed

* test for loading

* fix workspace panel

* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx

* revert useEffect for external embeddables
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 31, 2021
…ic#110460)

* bugs fixed

* test for loading

* fix workspace panel

* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx

* revert useEffect for external embeddables
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.15
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 31, 2021
…) (#110590)

* bugs fixed

* test for loading

* fix workspace panel

* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx

* revert useEffect for external embeddables

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
kibanamachine added a commit that referenced this pull request Aug 31, 2021
…) (#110589)

* bugs fixed

* test for loading

* fix workspace panel

* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx

* revert useEffect for external embeddables

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated: Automatically backport this PR after it's merged Feature:Lens release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.0 v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Filters come back when saving Lens
4 participants