mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
remove isStaticValue from column (#224517)
This commit is contained in:
parent
492be5e27d
commit
c3184aaf14
6 changed files with 1 additions and 13 deletions
|
@ -107,7 +107,6 @@ export const mockedColumns: Record<string, GenericIndexPatternColumn> = {
|
|||
label: 'Static value: 0.75',
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: {
|
||||
|
|
|
@ -3900,7 +3900,6 @@ describe('IndexPattern Data Source', () => {
|
|||
...state.layers.first.columns,
|
||||
newStatic: {
|
||||
dataType: 'number',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
label: 'Static value: 0',
|
||||
operationType: 'static_value',
|
||||
|
|
|
@ -2070,7 +2070,6 @@ describe('IndexPattern Data Source suggestions', () => {
|
|||
columns: {
|
||||
'column-id-1': expect.objectContaining({
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
params: expect.objectContaining({
|
||||
value: '10',
|
||||
}),
|
||||
|
|
|
@ -129,7 +129,7 @@ export const formulaOperation: OperationDefinition<FormulaIndexPatternColumn, 'm
|
|||
const col = layer.columns[colId];
|
||||
return (
|
||||
!col.isBucketed &&
|
||||
!col.isStaticValue &&
|
||||
col.operationType !== 'static_value' &&
|
||||
col.operationType !== 'math' &&
|
||||
col.operationType !== 'formula'
|
||||
);
|
||||
|
|
|
@ -72,7 +72,6 @@ describe('static_value', () => {
|
|||
dataType: 'number',
|
||||
isBucketed: false,
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
references: [],
|
||||
params: {
|
||||
value: '23',
|
||||
|
@ -113,7 +112,6 @@ describe('static_value', () => {
|
|||
dataType: 'number',
|
||||
isBucketed: false,
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
references: [],
|
||||
params: {
|
||||
value: '23',
|
||||
|
@ -249,7 +247,6 @@ describe('static_value', () => {
|
|||
label: 'Static value',
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: { value: '100' },
|
||||
|
@ -266,7 +263,6 @@ describe('static_value', () => {
|
|||
label: 'Static value',
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: { value: '23' },
|
||||
|
@ -277,7 +273,6 @@ describe('static_value', () => {
|
|||
label: 'Static value: 23',
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: { value: '23' },
|
||||
|
@ -298,7 +293,6 @@ describe('static_value', () => {
|
|||
label: 'Static value: 23',
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: { value: '23' },
|
||||
|
@ -316,7 +310,6 @@ describe('static_value', () => {
|
|||
label: 'Static value',
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: { value: '23' },
|
||||
|
@ -329,7 +322,6 @@ describe('static_value', () => {
|
|||
label: 'Static value: 53',
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: { value: '53' },
|
||||
|
|
|
@ -129,7 +129,6 @@ export const staticValueOperation: OperationDefinition<
|
|||
label: ofName(previousParams.value),
|
||||
dataType: 'number',
|
||||
operationType: 'static_value',
|
||||
isStaticValue: true,
|
||||
isBucketed: false,
|
||||
scale: 'ratio',
|
||||
params: { ...previousParams, value: String(previousParams.value ?? defaultValue) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue