Decouples saved objects management from legacy saved objects loaders#113031
Conversation
|
|
||
| export { fetchExportByTypeAndSearch } from './fetch_export_by_type_and_search'; | ||
| export { fetchExportObjects } from './fetch_export_objects'; | ||
| export { canViewInApp } from './in_app_url'; |
| export { findObjects } from './find_objects'; | ||
| export { bulkGetObjects } from './bulk_get_objects'; | ||
| export { extractExportDetails, SavedObjectsExportResultDetails } from './extract_export_details'; | ||
| export { createFieldList } from './create_field_list'; |
There was a problem hiding this comment.
No longer used
|
|
||
| interface MountParams { | ||
| core: CoreSetup<StartDependencies, SavedObjectsManagementPluginStart>; | ||
| serviceRegistry: ISavedObjectsManagementServiceRegistry; |
There was a problem hiding this comment.
We use the raw saved objects directly now and don't need the client-side registry.
| id: '1', | ||
| relationship: 'parent', | ||
| meta: { | ||
| editUrl: '/management/kibana/objects/savedSearches/1', |
| description: i18n.translate('savedObjectsManagement.objects.savedObjectsDescription', { | ||
| defaultMessage: | ||
| 'Import, export, and manage your saved searches, visualizations, and dashboards.', | ||
| defaultMessage: 'Import, export, and manage your saved objects.', |
There was a problem hiding this comment.
We support all registered saved object types and aren't restricted to those using the loaders anymore.
There was a problem hiding this comment.
You need to delete the key from the translation files for it to be picked for re-translation
| { "path": "../kibana_react/tsconfig.json" }, | ||
| { "path": "../management/tsconfig.json" }, | ||
| { "path": "../visualizations/tsconfig.json" }, | ||
| { "path": "../saved_objects_tagging_oss/tsconfig.json" }, |
There was a problem hiding this comment.
We were indirectly inheriting the saved_objects_tagging_oss types from the visualizations plugin. With the visualizations dependency gone, we need to declare it explicitly.
TinaHeiligers
left a comment
There was a problem hiding this comment.
self review
|
FYI @flash1293 |
|
@elasticmachine merge upstream |
| "server": true, | ||
| "ui": true, | ||
| "requiredPlugins": ["management", "data"], | ||
| "optionalPlugins": ["dashboard", "visualizations", "discover", "home", "savedObjectsTaggingOss", "spaces"], |
| description: i18n.translate('savedObjectsManagement.objects.savedObjectsDescription', { | ||
| defaultMessage: | ||
| 'Import, export, and manage your saved searches, visualizations, and dashboards.', | ||
| defaultMessage: 'Import, export, and manage your saved objects.', |
There was a problem hiding this comment.
You need to delete the key from the translation files for it to be picked for re-translation
| export interface ObjectField { | ||
| type: FieldType; | ||
| name: string; | ||
| value: any; | ||
| } | ||
|
|
||
| export type FieldType = 'text' | 'number' | 'boolean' | 'array' | 'json'; |
There was a problem hiding this comment.
From a quick grep, I think ObjectField and FieldType are also no longer used?
There was a problem hiding this comment.
You're right! This also means we can delete the whole file 😄
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: |
Resolves #67607
The saved objects management plugin no longer supports legacy imports and the edit view has changed to a read-only view.
This PR handles the tech debt of removing the dependency on the loaders completely.
Checklist
For maintainers