-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Describe the feature:
The Kibana Reporting plugin code needs to be migrated to the New Platform interface.
The Reporting plugin definition in NP will share a contract with other plugins that will allow them to pass a Kibana URL and some options to a function and receive an observable that resolves to a PNG payload of the screenshot. This was already possible in the legacy Reporting code, but the interface to the screenshot observable is cumbersome and undocumented.
Tasks:
-
Define
serverFacadeandrequestFacadeobjects that use bare-bones types of the legacy dependencies -
Create the
server/plugin.tsfile to declare the plugin definition, which shims Reporting- Ultimately this allows us to expose a contract that lets other plugins consume a URL-to-screenshot observable.
- @tsullivan PR: [Reporting/Migration] ReportingSetup, LegacySetup #54198
-
Consume New Platform dependencies and pass them to the server shim
- Logging
- Security
- FieldFormats
- Elasticsearch
- Config
- UI Setting Client and Saved Objects
- Server Routes & Licensing
- Usage Collector
-
Migrate the UI to the New Platform
Concerns:
-
server.fieldFormatServiceFactoryis unavailable in Types - We use
config.seton the server side in some places to update to a configuration that will work with Reporting. We always log a warning and explain how to update the configuration and silence the warning. Will this be possible in the New Platform? - BLOCKING: Management plugins need to be registered with a migrated Management App; Management App is not migrated yet
- Should we detect ES connection health to influence how we poll for pending jobs? [Reporting] Background poller runs regardless of ES health #18297 (blocked by Migrate status service and status page to New Platform #41983)
- Need access to Kibana config settings:
server.port,server.host, etc. Issue: [New Platform] APIs needed for opening a connection to the Kibana server #56231