-
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
[types removal] Remove type from bulk_uploader in monitoring #32315
Conversation
💚 Build Succeeded |
Pinging @elastic/stack-monitoring |
💚 Build Succeeded |
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 for taking this on!
Found a blocker though. See my comments
@@ -181,7 +179,7 @@ export class BulkUploader { | |||
const flat = Object.keys(typesNested).reduce((accum, type) => { | |||
return [ | |||
...accum, | |||
{ index: { _type: type } }, | |||
{ index: {} }, |
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.
This will actually break internal collection. It's a bit confusing because the endpoint we use to index monitoring documents is a different endpoint than the typical bulk endpoint. This _type
is actually rewritten in this custom ES endpoint to not be the type
of the document, but rather a type
field nested in the source
of the indexed document. We need to remove this change.
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.
@chrisronline in that case what is a way to avoid a deprecation warning?
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.
@chrisronline @sulemanof
I've created issue to track that: #32458.
@@ -36,7 +36,6 @@ export async function getDefaultAdminEmail(config, callCluster, log) { | |||
const version = config.get('pkg.version'); | |||
const uiSettingsDoc = await callCluster('get', { | |||
index, | |||
type: 'doc', |
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.
This change looks good!
💚 Build Succeeded |
New issue was created: #32458. We can merge this pull request partially
…#32315) * [types removal] Remove type from bulk_uploader in monitoring * Remove type from get_settings_collector * Revert changes
…#32315) * [types removal] Remove type from bulk_uploader in monitoring * Remove type from get_settings_collector * Revert changes
Summary
This removes type from bulk_uploader requests in monitoring
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers