-
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
Explicitly set level
for all registered deprecations
#115344
Comments
@pgayvallet this one |
Friendly reminder to @elastic/kibana-app-services @elastic/kibana-presentation @elastic/kibana-alerting-services @elastic/apm-ui @elastic/security-threat-hunting @elastic/fleet @elastic/kibana-gis @elastic/security-solution @elastic/rac that this would ideally be done before |
@pgayvallet can you confirm if we should or should not add levels to the "enabled" deprecations in any/all plugins? |
Sorry for the late answer. No, don't mind the |
@pgayvallet Can we close this issue now? Looks like everything has been addressed. |
Yea, this is done, closing. |
Required for #114197
In #114197, we're planning to no longer have the deprecation's
level
be optional when registering it.For this reason, we need all deprecation owners to explicitly set the correct level for all of their existing deprecations, both
config
deprecations registered via thePluginConfigDescriptor
, and deprecations registered via thecore.deprecations
API.This will also be an occasion for all deprecation owners to check if their deprecations are defining their correct level, as most deprecations are currently using the default, which is
critical
, and may be wrong.Note: having a deprecation with an incorrect
level
is considered a bug. Therefor, fixing your deprecation's level can be flagged asbug
and merged after 7.16 FF.How to choose the correct deprecation level?
Please follow these guidelines to decide if your deprecation should be considered as
critical
orwarning
:How to adapt my deprecation to set the correct level?
For config deprecations (registered with the plugin's config)
factory deprecations
Add the
level
option to the (optional) last parameter of the deprecation factory.before
after
non-factory deprecations
Just add the
level
option to theaddDeprecation
call:before
after
For other deprecations (registered via
core.deprecations
)Just specify the
level
option when returning your deprecationsbefore
after
Inventory
Note: this is the inventory from the
7.x
branch, as a lot of deprecations are only present on this branch and not on master, and I don't think we have a lot of deprecations onmaster
that are not present in7.x
. However, that's each team's responsibility to properly also reverse-backport/apply their changes on master when necessary.I did not include the
deprecate('enabled', '8.0.0')
config deprecations in the per-team list to avoid pinging unnecessary teams, as we know those are allcritical
.@elastic/kibana-core
done in #115501
/src/plugins/home/server/index.ts
kibana/src/plugins/home/server/index.ts
Lines 21 to 23 in 669839c
/src/plugins/newsfeed/server/index.ts
kibana/src/plugins/newsfeed/server/index.ts
Line 20 in 57af846
/src/plugins/telemetry/server/config/config.ts
kibana/src/plugins/telemetry/server/config/config.ts
Line 84 in cfae29a
/src/plugins/usage_collection/server/config.ts
kibana/src/plugins/usage_collection/server/config.ts
Lines 32 to 37 in c670302
/x-pack/plugins/banners/server/config.ts
kibana/x-pack/plugins/banners/server/config.ts
Lines 42 to 46 in 26b5ef8
/x-pack/plugins/licensing/server/licensing_config.ts
kibana/x-pack/plugins/licensing/server/licensing_config.ts
Lines 21 to 25 in 57af846
@elastic/kibana-stack-management
/src/plugins/console/server/config.ts
(183a1c3)kibana/src/plugins/console/server/config.ts
Lines 69 to 74 in cef53a9
@elastic/kibana-app-services
/src/plugins/data/server/index.ts
kibana/src/plugins/data/server/index.ts
Lines 139 to 140 in 0d2fcbc
/x-pack/plugins/reporting/server/config/index.ts
([Reporting] Add log level to config #118319)kibana/x-pack/plugins/reporting/server/config/index.ts
Lines 19 to 23 in 26b5ef8
@elastic/kibana-vis-editors
/src/plugins/kibana_legacy/server/index.ts
kibana/src/plugins/kibana_legacy/server/index.ts
Lines 19 to 21 in 26b5ef8
/src/plugins/vis_types/metric/server/index.ts
kibana/src/plugins/vis_types/metric/server/index.ts
Lines 15 to 17 in c13f6ad
/src/plugins/vis_types/table/server/index.ts
kibana/src/plugins/vis_types/table/server/index.ts
Lines 17 to 21 in 10668d0
/src/plugins/vis_types/tagcloud/server/index.ts
kibana/src/plugins/vis_types/tagcloud/server/index.ts
Lines 15 to 17 in c13f6ad
/src/plugins/vis_types/timelion/server/index.ts
kibana/src/plugins/vis_types/timelion/server/index.ts
Lines 15 to 18 in 10668d0
/src/plugins/vis_types/timeseries/server/index.ts
kibana/src/plugins/vis_types/timeseries/server/index.ts
Lines 16 to 20 in f3a4520
/src/plugins/vis_types/vega/server/index.ts
kibana/src/plugins/vis_types/vega/server/index.ts
Lines 19 to 21 in c13f6ad
@elastic/kibana-presentation
/src/plugins/vis_type_markdown/server/index.ts
Done Adds level to vis_markdown deprecations #118389
kibana/src/plugins/vis_type_markdown/server/index.ts
Lines 15 to 17 in 57af846
@elastic/kibana-alerting-services
Done #115832
/x-pack/plugins/actions/server/index.ts
kibana/x-pack/plugins/actions/server/index.ts
Lines 59 to 61 in 26b5ef8
/x-pack/plugins/alerting/server/index.ts
kibana/x-pack/plugins/alerting/server/index.ts
Lines 51 to 56 in 26b5ef8
/x-pack/plugins/event_log/server/index.ts
kibana/x-pack/plugins/event_log/server/index.ts
Lines 29 to 34 in 26b5ef8
/x-pack/plugins/stack_alerts/server/index.ts
kibana/x-pack/plugins/stack_alerts/server/index.ts
Lines 16 to 19 in 26b5ef8
/x-pack/plugins/task_manager/server/index.ts
kibana/x-pack/plugins/task_manager/server/index.ts
Lines 47 to 50 in 26b5ef8
/x-pack/plugins/triggers_actions_ui/server/index.ts
kibana/x-pack/plugins/triggers_actions_ui/server/index.ts
Lines 29 to 31 in 26b5ef8
@elastic/apm-ui
Done in #116272
/x-pack/plugins/apm/server/index.ts
kibana/x-pack/plugins/apm/server/index.ts
Lines 68 to 73 in 2d28371
It already has a level
/x-pack/plugins/apm/server/deprecations/index.ts
kibana/x-pack/plugins/apm/server/deprecations/index.ts
Lines 22 to 28 in b47f88a
@elastic/security-threat-hunting (#118268)
/x-pack/plugins/cases/server/index.ts
kibana/x-pack/plugins/cases/server/index.ts
Lines 18 to 21 in ef8518d
@elastic/kibana-security
/x-pack/plugins/security/server/config_deprecations.ts
(done via Update security deprecation messages #115241/[7.x] Update security deprecation messages (#115241) #115395 in 7.x/master)kibana/x-pack/plugins/security/server/config_deprecations.ts
Lines 11 to 17 in 26b5ef8
/x-pack/plugins/spaces/server/config.ts
(done via [7.x] Update security deprecation messages (#115241) #115395 in 7.x only, no deprecations remaining in master)kibana/x-pack/plugins/spaces/server/config.ts
Lines 50 to 52 in 26b5ef8
@elastic/fleet
/x-pack/plugins/fleet/server/index.ts
kibana/x-pack/plugins/fleet/server/index.ts
Lines 46 to 49 in 26b5ef8
@elastic/kibana-gis
/x-pack/plugins/maps/server/index.ts
kibana/x-pack/plugins/maps/server/index.ts
Lines 26 to 32 in 26b5ef8
@elastic/security-solution (#118268)
/x-pack/plugins/security_solution/server/index.ts
kibana/x-pack/plugins/security_solution/server/index.ts
Lines 23 to 29 in ef8518d
@elastic/rac
/x-pack/plugins/rule_registry/server/config.ts
kibana/x-pack/plugins/rule_registry/server/config.ts
Lines 12 to 15 in 8fe23f3
List of
deprecate('enabled', '8.0.0')
deprecationsOnly here for tracking purposes, if we eventually want to specify
level: 'critical'
on those:kibana/x-pack/plugins/cloud/server/config.ts
Line 55 in ef8518d
kibana/x-pack/plugins/saved_objects_tagging/server/config.ts
Line 19 in ef8518d
kibana/x-pack/plugins/cross_cluster_replication/server/index.ts
Line 20 in ef8518d
kibana/x-pack/plugins/index_lifecycle_management/server/index.ts
Line 20 in ef8518d
kibana/x-pack/plugins/index_management/server/index.ts
Line 17 in ef8518d
kibana/x-pack/plugins/license_management/server/index.ts
Line 20 in ef8518d
kibana/x-pack/plugins/remote_clusters/server/config.ts
Line 21 in ef8518d
kibana/x-pack/plugins/rollup/server/index.ts
Line 16 in ef8518d
kibana/x-pack/plugins/snapshot_restore/server/index.ts
Line 15 in ef8518d
kibana/x-pack/plugins/upgrade_assistant/server/index.ts
Line 17 in ef8518d
kibana/x-pack/plugins/lens/server/index.ts
Line 22 in ef8518d
kibana/x-pack/plugins/timelines/server/index.ts
Line 13 in ef8518d
kibana/x-pack/plugins/encrypted_saved_objects/server/index.ts
Line 20 in ef8518d
kibana/x-pack/plugins/enterprise_search/server/index.ts
Line 40 in ef8518d
kibana/x-pack/plugins/graph/server/index.ts
Line 21 in ef8518d
kibana/x-pack/plugins/infra/server/plugin.ts
Line 71 in ef8518d
kibana/x-pack/plugins/lists/server/index.ts
Line 23 in ef8518d
kibana/x-pack/plugins/logstash/server/index.ts
Line 18 in ef8518d
kibana/x-pack/plugins/metrics_entities/server/index.ts
Line 17 in ef8518d
kibana/x-pack/plugins/observability/server/index.ts
Line 37 in b65a506
kibana/x-pack/plugins/osquery/server/index.ts
Line 13 in ef8518d
cc @cjcenizal
The text was updated successfully, but these errors were encountered: