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 useRequest to support query change #57723

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Feb 14, 2020

Summary

Resolves #57652

My attempt to Fix useRequest hooks to reload when query change.

No visual changes

In fleet and EPM we use a lot useRequest and we will need this hook to trigger request if the query change.

Checklist

Delete any items that are not applicable to this PR.

@nchaulet nchaulet added the Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more label Feb 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@nchaulet nchaulet added the release_note:skip Skip the PR/issue when compiling release notes label Feb 14, 2020
@nchaulet nchaulet self-assigned this Feb 14, 2020
Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

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

@nchaulet Thanks for taking this on! Code LGTM. I tested our apps that currently consume this - watcher and index templates - and everything still worked as expected. It actually resolved an issue in watcher that also passes a query string (related code) - so thank you for that!

I approve, but left one note about updating the comment in the code. If you could address that before merging, that would be great.

@nchaulet nchaulet force-pushed the feature-use-request-57652 branch from 0762e19 to a3c837a Compare February 19, 2020 17:49
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

  • 💚 Build #26946 succeeded 0762e1993d4dc5a5a0c5550599c70ba1998c1f47

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

@nchaulet nchaulet merged commit 5946729 into elastic:master Feb 19, 2020
@nchaulet nchaulet deleted the feature-use-request-57652 branch February 19, 2020 19:52
mbondyra added a commit to mbondyra/kibana that referenced this pull request Feb 20, 2020
* master: (136 commits)
  [Visualize] Remove legacy appState in visualize (elastic#57330)
  Use static time for tsvb rollup test (elastic#57701)
  [SIEM] Fix ResizeObserver polyfill (elastic#58046)
  [SIEM][Detection Engine] Fixes return codes where some were rule_id instead of id
  skip flaky suite (elastic#56816)
  skip flaky suite (elastic#58059)
  skip flaky suite (elastic#45348)
  migrates notification server routes to NP (elastic#57906)
  Moved all of the show/hide toggles outside of ordered lists. (elastic#57163)
  [APM] NP Migration - Moves plugin server files out of legacy (elastic#57532)
  [Maps][Telemetry] Migrate Maps telemetry to NP (elastic#55055)
  Embeddable add panel examples (elastic#57319)
  Fix useRequest to support query change (elastic#57723)
  Allow custom paths in plugin generator (elastic#57766)
  [SIEM][Case] Merge header components (elastic#57816)
  [ML] New Platform server shim: update job audit messages routes (elastic#57925)
  [kbn/optimizer] emit success event from reducer when all bundles cached (elastic#57945)
  [APM] Don’t include UI filters when fetching a specific transaction (elastic#57934)
  Upgrade yargs (elastic#57720)
  skip flaky suite (elastic#57762) (elastic#57997) (elastic#57998)
  ...

# Conflicts:
#	src/plugins/advanced_settings/public/management_app/components/field/__snapshots__/field.test.tsx.snap
#	src/plugins/advanced_settings/public/management_app/components/field/field.tsx
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useRequest does not fetch when query has changed
4 participants