Removes legacy infra plugin and moves saved objects registration to NP#64848
Conversation
https://github.com/elastic/kibana/blob/dcc4081bd81d080776f019e98232fe743bd226d2/docs/development/core/server/kibana-plugin-core-server.savedobjectstype.md might be able to explain the attributes.
The type of the value returned from a savedObjectClient is kibana/src/core/types/saved_objects.ts Lines 80 to 101 in dcc4081 attributes.
The In any case, I would recommend using io-ts to |
|
@weltenwort I'm so sorry. I just saw that you were reviewing this PR already. For some reason github didn't put your avatar in the reviewers' list and I assigned it to myself. |
|
@afgomez I think @weltenwort just commented on something, I don't think he assigned himself as a reviewer. Thanks to you both! I'm going to see about adding a decode before I merge anything. |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* master: (133 commits) Cleanup Typescript index pattern field editor / Expression functions for bucket agg (elastic#65254) Removes legacy infra plugin and moves saved objects registration to NP (elastic#64848) Added support for docLinks plugin in Connectors forms and missing save capabilities for modal dialog (elastic#64986) [SIEM] Removes prebuilt rules number dependency (elastic#65128) [Maps] add categorical palettes with 20 and 30 categories (elastic#64701) [CI] Slack alerts - Elasticsearch snapshot failures (elastic#64724) [Uptime] Console errors in case index missing (elastic#65115) [SIEM][CASE] Dynamic fields mapping based on connector (elastic#64412) [test/functional] Tsfy page objects (elastic#64887) [Maps] [Telemetry] Track geo_point and geo_shape index patterns separately (elastic#65195) [Maps] Add global fit to data (elastic#64702) Visualize: Reload on ui state change and fix ui state for tsvb (elastic#63699) [SIEM] [Cases] External service selection per case (elastic#64775) [Uptime] Set ML anomaly look-back to 2w (from 24h) / Add spinner (elastic#65055) [Metrics UI] Remove APM Hard Dependency (elastic#64952) [Ingest] Datastream list: add icons and dashboard links (elastic#65048) disable plugins. they could access ES via SO repository (elastic#65242) Feature fleet enrollment instructions (elastic#65176) [SIEM] Adds 'Configure connector' Cypress test (elastic#64807) [TSVB] Fix std deviation band mode (elastic#64413) ...
elastic#64848) * Removes legacy infra plugin and moves saved objects to NP * Removes unnecessary legacy getLibs method * Reverts saved objects to "single" namespace mode
Closes #57999
Closes #61773
Summary
This PR moves our logs/metrics saved object registration to the new platform and removes the legacy infra plugin as it's no longer needed 🎉 🎉 🎉 .
In doing this, I've also made all 3 of our saved objects importable and exportable.
To test this:
Outstanding questions
These have been asked in Slack in #kibana-platform, but still need to be addressed:
says there is a value called
namespaceAgnosticthat used to beisNamespaceAgnostic, but theSavedObjectTypeTS type I'm using says the field isnamespaceTypeand that it's required. And I don't know what it is or does (I also don't know what hidden is or does, which is another required field, but I guessed on that one)SavedObjectsTypefromsrc/core/serverisn't a generic, so is it not possible to type the mappings?