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

Pass uiSettings to all data plugin services #42159

Merged
merged 144 commits into from
Aug 11, 2019

Conversation

lizozom
Copy link
Contributor

@lizozom lizozom commented Jul 29, 2019

Summary

Shape data plugin into standard shape + pass uiSettings from top level to all services

Dev Docs

Introduction of QueryBarWrapper for TSVB

Most TSVB panels and componenbts use QueryInputBar, which now requires some core dependencies. To make it easier to pass those down from editor, I added QueryBarWrapper, which at the moment, provides:

  • uiSettings
  • storage
  • App name

Checklist

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

For maintainers

Liza Katz added 30 commits June 19, 2019 15:40
Support search bar with no filter bar (TS)
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

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

TSVB changes looks good for me. Thanks

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

This all LGTM, but to be honest I don't fully understand the angular code that has been added to the legacy module shim (probably just me not being an angular expert).

AFAICT it is basically doing some magic to add the uiSettings to $scope? Is it serving any other purpose?

Anyway, I'm cool with moving forward with this, but just wanted to add that caveat. @alexwizp probably also knows more about the angular stuff than me, so if he's comfortable with it, I'm on board.

@lizozom
Copy link
Contributor Author

lizozom commented Aug 9, 2019

Yes @lukeelmers, this is done to inject settings into the filter bar directive when it's being used directly and not through top nav. It's the same type of helper directive I used for too nav.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@lizozom lizozom merged commit 060d998 into elastic:master Aug 11, 2019
jloleysens added a commit to jloleysens/kibana that referenced this pull request Aug 12, 2019
…p-metrics-selectall

* 'master' of github.com:elastic/kibana: (22 commits)
  [Code]: downgrade the log level of error message from subprocess (elastic#42925)
  [Code] Cancel clone/update job in the middle if disk space over the watermark (elastic#42890)
  Add Kibana App specific URL to the help menu (elastic#34739) (elastic#42580)
  [Maps] refactor createShapeFilterWithMeta to support more than just polygons (elastic#43042)
  Skip flaky es_ui_shared/request tests.
  Pass uiSettings to all data plugin services (elastic#42159)
  [SIEM] Upgrades react-redux and utilize React.memo for performance gains  (elastic#43029)
  [skip-ci][Maps] add maki icon sheet to docs (elastic#43063)
  Adding "style-src 'unsafe-inline' 'self'" to default CSP rules (elastic#41305)
  Update dependency commander to v3 (elastic#43041)
  Update dependency @percy/agent to ^0.10.0 (elastic#40517)
  [Maps] only show top hits checkbox if index has date fields (elastic#43056)
  run chained_controls on Firefox to catch regression (elastic#43044)
  fixing issue with dashboard csv download (elastic#42964)
  Expose task manager as plugin instead of server argument (elastic#42966)
  Expose createRouter from HttpService, prepare handlers for context introduction (elastic#42686)
  [Code] disk watermark supports percentage and absolute modes (elastic#42987)
  [apps/dashboard] skip part of filtering tests on FF (elastic#43047)
  [ML] Kibana management jobs list (elastic#42570)
  [ML] Fix check for watcher being enabled (elastic#43025)
  ...
@lukasolson
Copy link
Member

Looks like this PR missed one usage of the filter bar in the "View surrounding documents" view:

<filter-bar
class-name="'globalFilterGroup__filterBar'"
filters="contextApp.state.queryParameters.filters"
on-filters-updated="contextApp.actions.updateFilters"
index-patterns="[contextApp.indexPattern]"
></filter-bar>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants