From e35fb12c04a7dd0bdb88a442656303e619dacbc4 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Tue, 23 Nov 2021 07:11:10 -0600 Subject: [PATCH] remove removeby statements (#119360) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- src/plugins/data_views/common/data_views/data_view.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/data_views/common/data_views/data_view.ts b/src/plugins/data_views/common/data_views/data_view.ts index 8d3fcbf7d0ced..76cc54e984712 100644 --- a/src/plugins/data_views/common/data_views/data_view.ts +++ b/src/plugins/data_views/common/data_views/data_view.ts @@ -231,7 +231,6 @@ export class DataView implements IIndexPattern { * @param fieldType * @param lang * @deprecated use runtime field instead - * @removeBy 8.1 */ async addScriptedField(name: string, script: string, fieldType: string = 'string') { const scriptedFields = this.getScriptedFields(); @@ -262,7 +261,6 @@ export class DataView implements IIndexPattern { * Remove scripted field from field list * @param fieldName * @deprecated use runtime field instead - * @removeBy 8.1 */ removeScriptedField(fieldName: string) { @@ -274,8 +272,7 @@ export class DataView implements IIndexPattern { /** * - * @deprecated use runtime field instead - * @removeBy 8.1 + * @deprecated Will be removed when scripted fields are removed */ getNonScriptedFields() { return [...this.fields.getAll().filter((field) => !field.scripted)]; @@ -284,7 +281,6 @@ export class DataView implements IIndexPattern { /** * * @deprecated use runtime field instead - * @removeBy 8.1 */ getScriptedFields() { return [...this.fields.getAll().filter((field) => field.scripted)];