mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Core API Review process documentation * Add links to public/server api docs and migration guide
This commit is contained in:
parent
d715511708
commit
de144eaed5
2 changed files with 21 additions and 0 deletions
|
@ -68,6 +68,7 @@
|
|||
"uiFramework:documentComponent": "cd packages/kbn-ui-framework && yarn documentComponent",
|
||||
"kbn:watch": "node scripts/kibana --dev --logging.json=false",
|
||||
"build:types": "tsc --p tsconfig.types.json",
|
||||
"core:acceptApiChanges": "yarn build:types && node scripts/check_core_api_changes.js --accept",
|
||||
"kbn:bootstrap": "yarn build:types && node scripts/register_git_hook"
|
||||
},
|
||||
"repository": {
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
Core is a set of systems (frontend, backend etc.) that Kibana and its plugins are built on top of.
|
||||
|
||||
## Plugin development
|
||||
Core Plugin API Documentation:
|
||||
- [Core Public API](/docs/development/core/public/kibana-plugin-public.md)
|
||||
- [Core Server API](/docs/development/core/server/kibana-plugin-server.md)
|
||||
- [Migration guide for porting existing plugins](./MIGRATION.md)
|
||||
|
||||
## Integration with the "legacy" Kibana
|
||||
|
||||
Most of the existing core functionality is still spread over "legacy" Kibana and it will take some time to upgrade it.
|
||||
|
@ -19,3 +25,17 @@ by the "legacy" Kibana may be rejected by the `core` now.
|
|||
|
||||
Even though `core` has its own logging system it doesn't output log records directly (e.g. to file or terminal), but instead
|
||||
forward them to the "legacy" Kibana so that they look the same as the rest of the log records throughout Kibana.
|
||||
|
||||
## Core API Review
|
||||
To provide a stable API for plugin developers, it is important that the Core Public and Server API's are stable and
|
||||
well documented. To reduce the chance of regressions, development on the Core API's includes an API signature review
|
||||
process described below. Changes to the API signature which have not been accepted will cause the build to fail.
|
||||
|
||||
When changes to the Core API's signatures are made, the following process needs to be followed:
|
||||
1. After changes have been made, run `yarn core:acceptApiChanges` which performs the following:
|
||||
- Recompiles all typescript typings files
|
||||
- Updates the API review files `src/core/public/kibana.api.md` and `src/core/server/kibana.api.md`
|
||||
- Updates the Core API documentation in `docs/development/core/`
|
||||
2. Review and commit the updated API Review files and documentation
|
||||
3. Clearly flag any breaking changes in your pull request
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue