kibana/x-pack/plugins/enterprise_search/common
Constance 172c464b14
[Enterprise Search] Convert our public_url route to config_data and collect initialAppData (#75616)
* [Setup] DRY out stripTrailingSlash helper

- DRYs out repeated code
- This will be used by an upcoming server/ endpoint change, hence why it's in common

* [Setup] DRY out initial app data types to common/types

- In preparation for upcoming server logic that will need to reuse these types
+ DRY out and clean up workplace_search types
  - remove unused supportEligible
  - remove currentUser - unneeded in Kibana

* Update callEnterpriseSearchConfigAPI to parse and fetch new expected data

* Remove /public_url API for /config_data

* Remove getPublicUrl in favor of directly calling the new /config_data API from public/plugin

+ set returned initialData in this.data

* Set up product apps to be passed initial data as props

* Fix for Kea/redux state not resetting between AS<->WS nav

- resetContext at the top level only gets called once total on first plugin load and never after, causing navigating between WS and AS to crash when both have Kea - this fixes the issue

- moves redux Provider to top level app as well

* Add very basic Kea logic file to App Search

* Finish AppSearchConfigured tests & set up kea+useEffect mocks

* [Cleanup] DRY out repeated mock initialAppData to a reusable defaults constant
2020-08-21 09:02:15 -07:00
..
__mocks__ [Enterprise Search] Convert our public_url route to config_data and collect initialAppData (#75616) 2020-08-21 09:02:15 -07:00
strip_trailing_slash [Enterprise Search] Convert our public_url route to config_data and collect initialAppData (#75616) 2020-08-21 09:02:15 -07:00
types [Enterprise Search] Convert our public_url route to config_data and collect initialAppData (#75616) 2020-08-21 09:02:15 -07:00
constants.ts
version.ts [Enterprise Search] Add Workplace Search side navigation (#74894) 2020-08-14 15:28:34 -05:00