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

[Console] Fix bool filter autocompletions and refactor #60361

Merged

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Mar 17, 2020

Summary

Fix #53510

👆🏻this fix is in src/plugins/console/server/lib/spec_definitions/es_6_0/query/dsl.js. These changes should be backported to 7.6.2

Additional

Minor refactor in the autocomplete lib component - removed all references to Ace.

Release note

We fixed an issue where filter autocomplete suggestions inside bool queries would not appear.

The autocomplete lib component was controlling state that belongs
to the legacy editor model and so it was moved there.

The fix for filter autocompletion inside of "bool" was just
adding "[" around the filter scoped entry.
Also renamed the __tests__ dir to __jest__ to avoid re-running
in mocha.
@jloleysens jloleysens added Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.6.2 v7.7.0 v8.0.0 labels Mar 17, 2020
@elasticmachine
Copy link
Contributor

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

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Tested locally, this seems to fix the reported bug and I couldn't spot any regressions after some light testing. However, I'm not familiar enough with the codebase to assess the other changes. I'm going to merge this so we can make feature freeze.

@jloleysens Was this refactor work necessary for the bugfix or could it have been extracted?

@cjcenizal
Copy link
Contributor

cjcenizal commented Mar 17, 2020

@jloleysens This wasn't backporting cleanly to 7.6 so I had to revert the merge commit in 8412ab6. I believe all of the files had merge conflicts.

@jloleysens
Copy link
Contributor Author

@cjcenizal It could have been another PR, but altogether the changes are actually quite small (unfortunately some of them triggered white space changes). The fix was the patch for src/plugins/console/server/lib/spec_definitions/es_6_0/query/dsl.js which I thought could be backported by hand.

gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 18, 2020
* master:
  [ML] Re-enabling file upload telemetry (elastic#60418)
  [NP] Use local helper shortenDottedString for discover (elastic#60271)
  [Console] Fix for `_settings` and x-pack autocomplete (elastic#60246)
  Task/host enhancements (elastic#59671)
  [Search service] Asynchronous ES search strategy (elastic#53538)
  Index Action - Moved index params fields to connector config (elastic#60349)
  Edits UI text for ML nodes and job button (elastic#60184)
  Publish getIsNavDrawerLocked$ method on core chrome service. (elastic#60191)
  Disabled edit alert button on management ui for non registered UI alert types (elastic#60439)
  Revert "[Console] Fix bool filter autocompletions and refactor (elastic#60361)"
  [Console] Fix bool filter autocompletions and refactor (elastic#60361)
  Update ingest management team handle (elastic#60457)
  [IM] Use EuiCodeBlock to render index mapping (elastic#60420)
  Add additional safeguards for data source wizard step 2 (elastic#60426)
  [kbn/pm] don't fail when plugins are outside repo (elastic#60164)
  upgrade react-use (elastic#60427)
  Remove link to old settings (elastic#60326)
  Update app arch CODEOWNERS items. (elastic#60396)
  [ML] Fixing custom urls to dashboards (elastic#60355)
  Update the ems-client dependency to 7.7.0 (elastic#59936)
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 18, 2020
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 60361 or prevent reminders by adding the backport:skip label.

@cjcenizal cjcenizal added backport:skip This commit does not require backporting reverted labels Mar 19, 2020
@kibanamachine kibanamachine removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Mar 19, 2020
@cjcenizal cjcenizal added release_note:skip Skip the PR/issue when compiling release notes and removed release_note:fix labels Mar 19, 2020
@cjcenizal
Copy link
Contributor

Superseded by #60488 and #60513

gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 19, 2020
…alerting/tls-warning

* 'alerting/tls-warning' of github.com:gmmorris/kibana: (33 commits)
  [ML] Disable functional transform tests
  Fixes to service map single node banner (elastic#60072)
  [Uptime] replace fetch with kibana http (elastic#59881)
  Upgrade @types/node to match Node.js runtime (elastic#60368)
  [License Management] NP migration (elastic#60250)
  Fix create alert button from not showing in alerts list (elastic#60444)
  [SIEM][Case] Update connector through flyout (elastic#60307)
  add data-test-subj where possible on SO management table (elastic#60226)
  Enforce `required` presence for value/key validation of `recordOf` and `mapOf`. (elastic#60406)
  [ML] Re-enabling file upload telemetry (elastic#60418)
  [NP] Use local helper shortenDottedString for discover (elastic#60271)
  [Console] Fix for `_settings` and x-pack autocomplete (elastic#60246)
  Task/host enhancements (elastic#59671)
  [Search service] Asynchronous ES search strategy (elastic#53538)
  Index Action - Moved index params fields to connector config (elastic#60349)
  Edits UI text for ML nodes and job button (elastic#60184)
  Publish getIsNavDrawerLocked$ method on core chrome service. (elastic#60191)
  Disabled edit alert button on management ui for non registered UI alert types (elastic#60439)
  Revert "[Console] Fix bool filter autocompletions and refactor (elastic#60361)"
  [Console] Fix bool filter autocompletions and refactor (elastic#60361)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:skip Skip the PR/issue when compiling release notes reverted Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete breaks for all children of bool->filter
4 participants