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

Fix setting filters without $store value #56304

Merged
merged 7 commits into from
Jan 31, 2020

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Jan 29, 2020

Summary

Follow up on: #56213

AddFilters method had logic which ensured that $store exists in filter object, but setFilters was missing that.

I am not sure, if there is a way to reproduce the bug from the UI, except already fixed #56213. So the bug's impact is unknown.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@Dosant Dosant marked this pull request as ready for review January 29, 2020 17:31
@Dosant Dosant requested a review from a team as a code owner January 29, 2020 17:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@Dosant Dosant added review release_note:skip Skip the PR/issue when compiling release notes labels Jan 29, 2020
@Dosant Dosant requested a review from lizozom January 29, 2020 17:32
@Dosant
Copy link
Contributor Author

Dosant commented Jan 29, 2020

@elasticmachine merge upstream

@Dosant
Copy link
Contributor Author

Dosant commented Jan 30, 2020

@elasticmachine merge upstream

Setting the store is not longer temporary
Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Tested and makes sense.
Merging this means that #56213 can be reverted! @FrankHassanabad

@Dosant
Copy link
Contributor Author

Dosant commented Jan 30, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

? esFilters.FilterStateStore.GLOBAL_STATE
: esFilters.FilterStateStore.APP_STATE;

FilterManager.setFiltersStore(newFilters, store);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: FilterManager.setFiltersStore() sets new store only if filter is missing it

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe rename method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree that we should rename it. But I think we better do it in separate pr to keep this one scoped to filter_manager and just the bugfix which we backport to 7.6

@Dosant Dosant added bug Fixes for quality problems that affect the customer experience v7.6.0 labels Jan 31, 2020
@Dosant Dosant merged commit 6942f3e into elastic:master Jan 31, 2020
@Dosant Dosant deleted the dev/filter-manager/missing-store-fix branch January 31, 2020 09:53
Dosant added a commit to Dosant/kibana that referenced this pull request Jan 31, 2020
Follow up on: elastic#56213

AddFilters method had logic which ensured that $store exists in filter object, but setFilters was missing that.
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 31, 2020
* master: (53 commits)
  Fix setting filters without $store value (elastic#56304)
  kuery_autocomplete -> convert remaining items to TS/Jest (elastic#56316)
  [Reporting] New Platform: moves most of our libs/constants and utils to np shims (elastic#55935)
  [reporting] remove a legacy cross-plugin import (elastic#56354)
  [DOCS] Updates example in Timelion doc (elastic#56444)
  [APM] Service map center button (elastic#56434)
  [skip-ci] Add example for migrating pre-handlers (elastic#56080)
  [ML] Fix Data Visualizer responsive layout  (elastic#56372)
  Add missing docker settings (elastic#56411)
  [Endpoint] Add Endpoint Details route (elastic#55746)
  chore(NA): delete data/optimize with kbn clean (elastic#55890)
  System index templates can't be edited (elastic#55229)
  Sync badge (elastic#55113)
  Only fire appState changes when there is a change (elastic#56183)
  Import appropriate files to setup plugin system at the correct time (elastic#55956)
  [Monitoring] Change all configs to `monitoring.*` (elastic#56215)
  [ML] conditional rison encoding for query params (elastic#56380)
  Move tsvb server to new platform (elastic#55310)
  exclude tutorial resources from code ownership (elastic#55987)
  [Watcher] Follow up on flaky functional test (elastic#56384)
  ...
Dosant added a commit that referenced this pull request Jan 31, 2020
Follow up on: #56213

AddFilters method had logic which ensured that $store exists in filter object, but setFilters was missing that.
Dosant added a commit to Dosant/kibana that referenced this pull request Jan 31, 2020
Follow up on: elastic#56213

AddFilters method had logic which ensured that $store exists in filter object, but setFilters was missing that.
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jan 31, 2020
…56356

* '7.x' of github.com:elastic/kibana: (23 commits)
  Fix setting filters without $store value (elastic#56304) (elastic#56475)
  [ML] Fix Data Visualizer responsive layout  (elastic#56372) (elastic#56472)
  [ML] conditional rison encoding for query params (elastic#56380) (elastic#56469)
  kuery_autocomplete -> convert remaining items to TS/Jest (elastic#56316) (elastic#56471)
  [APM] Fit service map to container (elastic#56336) (elastic#56463)
  Add animation to service map layout (elastic#56042) (elastic#56460)
  chore(NA): delete data/optimize with kbn clean (elastic#55890) (elastic#56422)
  [APM] Storybook support (elastic#54970) (elastic#56445)
  [DOCS] Updates example in Timelion doc (elastic#56444) (elastic#56454)
  [Logs UI] Fix Check for New Data button on empty indices screen (elastic#56239) (elastic#56320)
  [DOCS] Adds breaking changes for 7.6 (elastic#56437)
  [Monitoring] Change all configs to `monitoring.*` (elastic#56215) (elastic#56421)
  [skip-ci] Add example for migrating pre-handlers (elastic#56080) (elastic#56436)
  [7.x] System index templates can't be edited (elastic#55229) (elastic#56417)
  Add missing docker settings (elastic#56411)
  [Uptime] Use dynamic index pattern in Uptime (elastic#55446) (elastic#56386)
  fix edit rule for detections (elastic#56333) (elastic#56405)
  [Filter Bar] Remove flickering when opening filter bar popover (elastic#56222) (elastic#56385)
  [ILM] Index Lifecycle Policies show wrong unit in Kibana UI (elastic#55228) (elastic#55757)
  Move tsvb server to new platform (elastic#55310) (elastic#56394)
  ...
Dosant added a commit that referenced this pull request Jan 31, 2020
Follow up on: #56213

AddFilters method had logic which ensured that $store exists in filter object, but setFilters was missing that.
jfsiii pushed a commit to jfsiii/kibana that referenced this pull request Feb 4, 2020
Follow up on: elastic#56213

AddFilters method had logic which ensured that $store exists in filter object, but setFilters was missing that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes review v7.6.0 v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants