-
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
Merged
+162
−162
Merged
ES UI new platform cleanup #64332
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3e8f340
Remove stub legacy index_management plugin.
cjcenizal 91b332b
Remove stub legacy remote_clusters plugin and move styles to NP plugin.
cjcenizal 28b8172
Remove stub legacy upgrade_assistant plugin and move saved object typ…
cjcenizal 5492849
Rename hacks.scss.
cjcenizal 1cd73b3
Update core API docs.
cjcenizal fb74c85
Use UA constants to define saved object type names.
cjcenizal 6d70a6a
Fix UA test failures by adding missing mappings.
cjcenizal 0f7ce01
Merge branch 'master' into np/es-ui-cleanup
cjcenizal 2ed99c6
Merge branch 'master' into np/es-ui-cleanup
cjcenizal 3115da0
Fix mistake in merge conflict resolution in which legacy siem is impo…
cjcenizal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ore/server/kibana-plugin-core-server.savedobjectscorefieldmapping.null_value.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsCoreFieldMapping](./kibana-plugin-core-server.savedobjectscorefieldmapping.md) > [null\_value](./kibana-plugin-core-server.savedobjectscorefieldmapping.null_value.md) | ||
|
||
## SavedObjectsCoreFieldMapping.null\_value property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
null_value?: number | boolean | string; | ||
``` |
13 changes: 13 additions & 0 deletions
13
.../development/core/server/kibana-plugin-core-server.savedobjectunsanitizeddoc.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectUnsanitizedDoc](./kibana-plugin-core-server.savedobjectunsanitizeddoc.md) | ||
|
||
## SavedObjectUnsanitizedDoc type | ||
|
||
We want to have two types, one that guarantees a "references" attribute will exist and one that allows it to be null. Since we're not migrating all the saved objects to have a "references" array, we need to support the scenarios where it may be missing (ex migrations). | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type SavedObjectUnsanitizedDoc = SavedObjectDoc & Partial<Referencable>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 1 addition & 4 deletions
5
...plugins/remote_clusters/public/index.scss → ...e_clusters/public/application/_hacks.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...lugins/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { SavedObjectsType } from 'src/core/server'; | ||
|
||
import { REINDEX_OP_TYPE } from '../../common/types'; | ||
|
||
export const reindexOperationSavedObjectType: SavedObjectsType = { | ||
name: REINDEX_OP_TYPE, | ||
hidden: false, | ||
namespaceType: 'agnostic', | ||
mappings: { | ||
properties: { | ||
reindexTaskId: { | ||
type: 'keyword', | ||
}, | ||
indexName: { | ||
type: 'keyword', | ||
}, | ||
newIndexName: { | ||
type: 'keyword', | ||
}, | ||
status: { | ||
type: 'integer', | ||
}, | ||
locked: { | ||
type: 'date', | ||
}, | ||
lastCompletedStep: { | ||
type: 'integer', | ||
}, | ||
errorMessage: { | ||
type: 'keyword', | ||
}, | ||
reindexTaskPercComplete: { | ||
type: 'float', | ||
}, | ||
runningReindexCount: { | ||
type: 'integer', | ||
}, | ||
reindexOptions: { | ||
properties: { | ||
openAndClose: { | ||
type: 'boolean', | ||
}, | ||
queueSettings: { | ||
properties: { | ||
queuedAt: { | ||
type: 'long', | ||
}, | ||
startedAt: { | ||
type: 'long', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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).