File tree Expand file tree Collapse file tree
src/core/server/deprecations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ export class DeprecationsService implements CoreService<InternalDeprecationsServ
156156 return deprecationsContexts . map ( ( { message, correctiveActions, documentationUrl } ) => {
157157 return {
158158 level : 'critical' ,
159+ deprecationType : 'config' ,
159160 message,
160161 correctiveActions : correctiveActions ?? { } ,
161162 documentationUrl,
Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ export interface DeprecationsDetails {
2525 * - fetch_error: Deprecations service failed to grab the deprecation details for the domain.
2626 */
2727 level : 'warning' | 'critical' | 'fetch_error' ;
28+ /**
29+ * (optiional) Used to identify between different deprecation types.
30+ * Example use case: in Upgrade Assistant, we may want to allow the user to sort by
31+ * deprecation type or show each type in a separate tab.
32+ *
33+ * Feel free to add new types if necessary.
34+ * Predefined types are necessary to reduce similar definitions with different keywords
35+ * across all kibana deprecations.
36+ */
37+ deprecationType ?: 'config' | 'feature' ;
2838 /* (optional) link to the documentation for more details on the deprecation. */
2939 documentationUrl ?: string ;
3040 /* corrective action needed to fix this deprecation. */
You can’t perform that action at this time.
0 commit comments