Skip to content
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

Merged
merged 3 commits into from
Mar 5, 2019

Conversation

sulemanof
Copy link
Contributor

Summary

This removes type from bulk_uploader requests in monitoring

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@epixa epixa requested a review from a team March 4, 2019 14:46
@epixa epixa added the Team:Monitoring Stack Monitoring team label Mar 4, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@chrisronline chrisronline left a 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: {} },
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sulemanof sulemanof requested a review from chrisronline March 5, 2019 09:50
@alexwizp alexwizp dismissed chrisronline’s stale review March 5, 2019 09:52

New issue was created: #32458. We can merge this pull request partially

@alexwizp alexwizp merged commit 748c18b into elastic:master Mar 5, 2019
sulemanof added a commit to sulemanof/kibana that referenced this pull request Mar 5, 2019
…#32315)

* [types removal] Remove type from bulk_uploader in monitoring

* Remove type from get_settings_collector

* Revert changes
sulemanof added a commit to sulemanof/kibana that referenced this pull request Mar 5, 2019
…#32315)

* [types removal] Remove type from bulk_uploader in monitoring

* Remove type from get_settings_collector

* Revert changes
sulemanof added a commit that referenced this pull request Mar 5, 2019
…#32465)

* [types removal] Remove type from bulk_uploader in monitoring

* Remove type from get_settings_collector

* Revert changes
sulemanof added a commit that referenced this pull request Mar 6, 2019
…#32466)

* [types removal] Remove type from bulk_uploader in monitoring

* Remove type from get_settings_collector

* Revert changes
@rayafratkina rayafratkina added the release_note:skip Skip the PR/issue when compiling release notes label Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation_warnings release_note:skip Skip the PR/issue when compiling release notes Team:Monitoring Stack Monitoring team v7.0.0 v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants