Skip to content

Conversation

@mshustov
Copy link
Contributor

Summary

Use NP deprecations in uiSettings
Tech debt of #47590

Checklist

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

For maintainers

@mshustov mshustov added chore Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes v7.6.0 labels Dec 23, 2019
@mshustov mshustov requested a review from a team as a code owner December 23, 2019 07:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@mshustov mshustov requested a review from pgayvallet December 23, 2019 07:39
@mshustov
Copy link
Contributor Author

mshustov commented Jan 6, 2020

@elasticmachine merge upstream

Comment on lines 30 to 33
export const config = {
path: 'uiSettings',
schema: schema.object({
overrides: schema.object({}, { allowUnknowns: true }),
// Deprecation is implemented in LP.
// We define schema here not to fail on the validation step.
enabled: schema.maybe(schema.boolean()),
overrides: schema.object(
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure: do we want to introduce an equivalent to PluginConfigDescriptor for our core services namespaces ?

Something like

interface ServiceConfigDescriptor<T = any> {
  path: string;
  schema: PluginConfigSchema<T>;
  deprecations?: ConfigDeprecationProvider;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure we can do that.

@mshustov mshustov force-pushed the ui-settings-np-deprecations branch from 36bc1c0 to 6c06e70 Compare January 6, 2020 10:45
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mshustov mshustov merged commit fd4bb8e into elastic:master Jan 6, 2020
@mshustov mshustov deleted the ui-settings-np-deprecations branch January 6, 2020 12:26
mshustov added a commit to mshustov/kibana that referenced this pull request Jan 6, 2020
* use NP deprecation iunstead of manual one in uiSettings

* add ServiceConfigDescriptor type

Co-authored-by: Elastic Machine <[email protected]>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 6, 2020
* master:
  allows Alerts to recover gracefully from Executor errors (elastic#53688)
  [Console] Fix OSS build (elastic#53885)
  migrate xsrf / version-check / custom-headers handlers to NP (elastic#53684)
  use NP deprecations in uiSettings (elastic#53755)
  adds strict types to Alerting Client (elastic#53821)
  [Dashboard] Empty screen redesign (elastic#53681)
  Migrate config deprecations and `ShieldUser` functionality to the New Platform (elastic#53768)
mshustov added a commit that referenced this pull request Jan 7, 2020
* use NP deprecation iunstead of manual one in uiSettings

* add ServiceConfigDescriptor type

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jan 7, 2020
…52893

* '7.x' of github.com:elastic/kibana:
  [Console] Fix OSS build (elastic#53885) (elastic#54094)
  [Console] Console with better SQL support (elastic#51446) (elastic#54091)
  Fix suggested value for time_zone in range query (elastic#53841) (elastic#54092)
  [APM] Show errors on the timeline instead of under the transaction (elastic#53756) (elastic#54109)
  use NP deprecations in uiSettings (elastic#53755) (elastic#54009)
  adding message to transaction and span metadata (elastic#54017) (elastic#54090)

# Conflicts:
#	x-pack/legacy/plugins/console_extensions/spec/overrides/sql.query.json
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 Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants