-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES UI new platform cleanup #64332
ES UI new platform cleanup #64332
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
@cchaos I understand the reasoning behind extracting styles out of the root |
When they are hacks, we actually use a file named |
@jloleysens Could you take a look at the Upgrade Assistant changes (91957739bf40aa9803dd11a24983ecf91ad770d3)? I'm not sure how to test these. @pgayvallet Could you take a look at my change to |
…es to NP plugin. - Update SavedObjectsCoreFieldMapping with null_field parameter.
9195773
to
5492849
Compare
Thanks for tip, @cchaos! Can you take another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that's fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM! FYI you'll need to regenerate and commit the core API docs:
node scripts/check_published_api_changes.js --docs --accept --filter=core/server
Thanks @joshdover, done. |
name: REINDEX_OP_TYPE, | ||
hidden: false, | ||
namespaceType: 'agnostic', | ||
mappings: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new Saved Object types API disallows dynamic mapping, which the original type definitions depended upon, so I had to add a bunch of new mappings to get the tests passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If dynamic mappings in SO type are really a need, we can discuss about enabling it (actually it's only 'disabled' in the TS type, forcing the dynamic: true
value does work, see (but please don't do):
kibana/src/core/server/ui_settings/saved_objects/ui_settings.ts
Lines 27 to 30 in d72de0e
// we don't want to allow `true` in the public `SavedObjectsTypeMappingDefinition` type, however | |
// this is needed for the config that is kinda a special type. To avoid adding additional internal types | |
// just for this, we hardcast to any here. | |
dynamic: true as any, |
It's just that when we discussed about it, we did not find any valid argument to allow this value on the public API as a SO type mapping is meant to be exhaustive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Pierre! I don't think we need it in this case. I also created #64547 so that we eventually remove these added mappings (if possible).
name: REINDEX_OP_TYPE, | ||
hidden: false, | ||
namespaceType: 'agnostic', | ||
mappings: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If dynamic mappings in SO type are really a need, we can discuss about enabling it (actually it's only 'disabled' in the TS type, forcing the dynamic: true
value does work, see (but please don't do):
kibana/src/core/server/ui_settings/saved_objects/ui_settings.ts
Lines 27 to 30 in d72de0e
// we don't want to allow `true` in the public `SavedObjectsTypeMappingDefinition` type, however | |
// this is needed for the config that is kinda a special type. To avoid adding additional internal types | |
// just for this, we hardcast to any here. | |
dynamic: true as any, |
It's just that when we discussed about it, we did not find any valid argument to allow this value on the public API as a SO type mapping is meant to be exhaustive.
I tested UA by verifying that the sample telemetry data shown in Advanced Settings included UA data that reflected actions I've taken in the UI. I also stubbed out some server code to allow me to reindex sample data: const getCombinedIndexInfos = (deprecations: DeprecationAPIResponse) => ([{
index: 'kibana_sample_data_flights',
reindex: true
}]); This let me run the reindexing action in the UI and verify that it completed successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me, happy if CI is passing.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* master: (60 commits) [SIEM] Create template timeline (elastic#63136) load react component lazily in so management section (elastic#64285) Cleanup .eslingignore and add target (elastic#64617) [Ingest] Support yaml variables in datasource (elastic#64459) typescript-ify portions of src/optimize (elastic#64688) [ngSanitize] add explicit dependencies to all uses of `ngSanitize` angular module (elastic#64546) Consolidate downloading plugin bundles to bootstrap script (elastic#64685) [Maps] disable edit layer button when flyout is open for add layer or map settings (elastic#64230) chore(NA): add async import into infra plugin to reduce apm bundle size (elastic#63292) [Maps] fix edit filter (elastic#64586) [SIEM][Detections] Adds large list support using REST endpoints Replace a number of any-ed styled(eui*) with accurate types (elastic#64555) [Endpoint] Recursive resolver children (elastic#61914) [ML] Fix new job wizard with multiple indices (elastic#64567) Use short URLs for legacy plugin deprecation warning (elastic#64540) [Uptime] Update uptime ml job id to limit to 64 char (elastic#64394) [Ingest] Fix GET /enrollment-api-keys/null error (elastic#64595) Consolidate cross-cutting concerns between region & coordinate maps in new maps_legacy plugin (elastic#64123) ES UI new platform cleanup (elastic#64332) [Event Log] use @timestamp field for queries (elastic#64391) ...
This PR removes the stub
remote_clusters
,index_management
, andupgrade_assistant
legacy plugins. Changes to note: