* Polish migration.md
- Added saved objects legacy vs NP docs
- Moved some data plugin docs into the right table
- added table for server-side plugin services and added the features plugin
* Missing backticks
* [APM] Make client-side routes static
Turn `getRoutes` back into `routes` so we can just import it.
Checking for the service map being enabled isn't really necessary since we don't have any links to those routes and the backend routes are already flagged.
* Move ui routes init to separate file
* Add index and general maps plugin template
* Add legacy shim. Pass uimodules in as legacy service
* Move ts-ignore
* Fix N/A ts error on uiModules
* Point index file toward legacy file. Minor NP additions
* [APM] Refactor core and plugin context
Change the plugin to use a context that exposes:
```
export interface ApmPluginContextValue {
config: ConfigSchema;
core: AppMountContext['core'];
packageInfo: PackageInfo;
plugins: ApmPluginSetupDeps;
}
```
This replaces the `PluginContext` and `usePlugins` that were added with the NP shim, and the `KibanaCoraContext` and `useKibanaCore` from the observability plugin.
Remove the observability plugin since it's not being used anywhere else.
* [Reporting/NPMigration] typescriptify ExportTypeRegistry, remove from server.expose
* Minor routes registration cleanup
* move the ETR test file
* Re-pack the route registration, reduce LOC changes
* add EnqueueJobFn type
* Fix usage collector test
* remove a throw error used for development/debugging
* fix imports error
* Fix execute job tests
* wip test fixes
* test fixes for real
* fix more tests
* fix diffs
* Add TODOs about the ExportTypesRegistry.register unwrap the factory functions.
* really make headlessbrowserdriver required as an execute job factory option
* fix tests
* Use constants for license type keywords
* [kbn/dev-utils] target ES2019 to transpile ??
* Retry uiSettings.replace() calls up to 5 times
* share logic for selecting junit report name to ensure they are unique
* convert to junit report path helper
* adds route for querying signals index, also updates signal status type names
* first pass at happy path tests
* fixes stuff after rebase with master
* utilizes removes search_query from payload and replaces it with just query, adds aggs to signals search api, updates route and validation tests
* removes _headers parameter from route handler and updates comment for aggs script
* Fix broken aria references
`EuiDescribedFormGroup` needs an actual header in its `title` for it to
make a correct `aria-labelledby`.
* Fix `aria-labelledby` references in settings page
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* First iteration of watch public -> new platform
Still need to switch to np ready version of use_request
* - Switched to using np ready request
- Some updates after API changes
* First attempt at server shim
* Rename file and re-enable react hooks linting
* Fix some public types and react hooks lint rules
* Fix types
* More ES lint react hooks fixes
* Migrated server lib -> ts. Part way done with migrating routes to NP router and TS
* Big subset of routes to TS and NP router - almost there
* Delete legacy error wrappers and moved last set of routes to TS and NP router
* Remove @ts-ignore's and update route registration to use shim with http router
* Added routes validations, fixes for hooks and fixes for types
* Fix more types and finish testing API routes
* Fix usage of feature catalogue and fix time buckets types
* Fix error message shape [skip ci]
* Split legacy from new platform dependencies server-side
* Refactor: Seperate client legacy and NP dependencies
* Add file: added types file
* Fix UISettings client type import
* Update license pre-routing factory spec
* Update variable names, use of I18nContext (use NP) and docs
* Use NP elasticsearchclient
* Simplify is_es_error_factory
* Fix types
* Improve code legibility and remove second use of `useAppContext`
* Use @kbn/config-schema (not validate: false) on routes!
* Fix watch create JSON spec
* Create threshold test working
* Unskip watch_edit.test.ts
* Unskip watch_list.test.ts
* Done re-enabling component integration tests
* TimeBuckets typo + remove unnecessary // @ts-ignore
* [APM] Fix some warnings logged in APM tests
(Seemingly) since the React upgrade in 439708a6f9, our tests have started logging various warnings/errors to the console. The test suite is still passing but it creates a lot of noise.
Changes:
- use `act` or `wait` when appropriate
- mock useFetcher calls
- cleanup in useDelayedVisbility
* Replace tick() with wait()