Skip to content

Commit

Permalink
remove removeby statements (elastic#119360)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
2 people authored and TinLe committed Dec 22, 2021
1 parent 17edeb4 commit e35fb12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/plugins/data_views/common/data_views/data_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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) {
Expand All @@ -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)];
Expand All @@ -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)];
Expand Down

0 comments on commit e35fb12

Please sign in to comment.