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

cleanup http config in legacy paltform for migrated params #42818

Merged

Conversation

mshustov
Copy link
Contributor

@mshustov mshustov commented Aug 7, 2019

Summary

Closes #41740
Remove validation rules for config parameters handled in the New platform.
blocker for #42606

Checklist

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

For maintainers

@mshustov mshustov force-pushed the issue-41740-remove-obsolete-http-config branch from 6d55242 to d6820fa Compare August 7, 2019 10:15
@elasticmachine
Copy link
Contributor

💔 Build Failed

@mshustov mshustov force-pushed the issue-41740-remove-obsolete-http-config branch from d6820fa to ed5b2ba Compare August 7, 2019 13:10
@mshustov mshustov force-pushed the issue-41740-remove-obsolete-http-config branch from ed5b2ba to 393d1ea Compare August 7, 2019 13:34
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mshustov mshustov added chore Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Aug 7, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@mshustov mshustov added the v7.4.0 label Aug 7, 2019
@mshustov mshustov marked this pull request as ready for review August 7, 2019 14:45
@mshustov mshustov requested a review from a team August 13, 2019 12:24
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

xsrf: Joi.object({
disableProtection: Joi.boolean().default(false),
whitelist: Joi.array().items(
Joi.string().regex(/^\//, 'start with a slash')
).default([]),
token: Joi.string().optional().notes('Deprecated')
}).default(),

// keep them for BWC, remove when not used in Legacy.
// validation should be in sync with one in New platform.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a file path for where these should be in sync?
Can you also add a comment in the corresponding NP code (unless there already is one)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you add a file path for where these should be in sync?

ok. it's not always practical, because a file can be moved and comments are out of sync

Can you also add a comment in the corresponding NP code (unless there already is one)?

will do

@@ -101,128 +101,6 @@ describe('Config schema', function () {
});
});

describe('ssl', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume parallel tests exist in the NP already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mshustov mshustov merged commit 3797fbf into elastic:master Aug 14, 2019
@mshustov mshustov deleted the issue-41740-remove-obsolete-http-config branch August 14, 2019 14:36
mshustov added a commit to mshustov/kibana that referenced this pull request Aug 14, 2019
…2818)

* cleanup http config in legacy paltform for migrated params

* add comments
mshustov added a commit that referenced this pull request Aug 15, 2019
…43274)

* cleanup http config in legacy paltform for migrated params

* add comments
chrisronline pushed a commit to chrisronline/kibana that referenced this pull request Aug 15, 2019
…2818)

* cleanup http config in legacy paltform for migrated params

* add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported chore Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cleanup Http Server config in Legacy platform
4 participants