mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -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',
|
label: 'Static value: 0.75',
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: {
|
params: {
|
||||||
|
|
|
@ -3900,7 +3900,6 @@ describe('IndexPattern Data Source', () => {
|
||||||
...state.layers.first.columns,
|
...state.layers.first.columns,
|
||||||
newStatic: {
|
newStatic: {
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
label: 'Static value: 0',
|
label: 'Static value: 0',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
|
|
|
@ -2070,7 +2070,6 @@ describe('IndexPattern Data Source suggestions', () => {
|
||||||
columns: {
|
columns: {
|
||||||
'column-id-1': expect.objectContaining({
|
'column-id-1': expect.objectContaining({
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
params: expect.objectContaining({
|
params: expect.objectContaining({
|
||||||
value: '10',
|
value: '10',
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -129,7 +129,7 @@ export const formulaOperation: OperationDefinition<FormulaIndexPatternColumn, 'm
|
||||||
const col = layer.columns[colId];
|
const col = layer.columns[colId];
|
||||||
return (
|
return (
|
||||||
!col.isBucketed &&
|
!col.isBucketed &&
|
||||||
!col.isStaticValue &&
|
col.operationType !== 'static_value' &&
|
||||||
col.operationType !== 'math' &&
|
col.operationType !== 'math' &&
|
||||||
col.operationType !== 'formula'
|
col.operationType !== 'formula'
|
||||||
);
|
);
|
||||||
|
|
|
@ -72,7 +72,6 @@ describe('static_value', () => {
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
references: [],
|
references: [],
|
||||||
params: {
|
params: {
|
||||||
value: '23',
|
value: '23',
|
||||||
|
@ -113,7 +112,6 @@ describe('static_value', () => {
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
references: [],
|
references: [],
|
||||||
params: {
|
params: {
|
||||||
value: '23',
|
value: '23',
|
||||||
|
@ -249,7 +247,6 @@ describe('static_value', () => {
|
||||||
label: 'Static value',
|
label: 'Static value',
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: { value: '100' },
|
params: { value: '100' },
|
||||||
|
@ -266,7 +263,6 @@ describe('static_value', () => {
|
||||||
label: 'Static value',
|
label: 'Static value',
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: { value: '23' },
|
params: { value: '23' },
|
||||||
|
@ -277,7 +273,6 @@ describe('static_value', () => {
|
||||||
label: 'Static value: 23',
|
label: 'Static value: 23',
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: { value: '23' },
|
params: { value: '23' },
|
||||||
|
@ -298,7 +293,6 @@ describe('static_value', () => {
|
||||||
label: 'Static value: 23',
|
label: 'Static value: 23',
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: { value: '23' },
|
params: { value: '23' },
|
||||||
|
@ -316,7 +310,6 @@ describe('static_value', () => {
|
||||||
label: 'Static value',
|
label: 'Static value',
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: { value: '23' },
|
params: { value: '23' },
|
||||||
|
@ -329,7 +322,6 @@ describe('static_value', () => {
|
||||||
label: 'Static value: 53',
|
label: 'Static value: 53',
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: { value: '53' },
|
params: { value: '53' },
|
||||||
|
|
|
@ -129,7 +129,6 @@ export const staticValueOperation: OperationDefinition<
|
||||||
label: ofName(previousParams.value),
|
label: ofName(previousParams.value),
|
||||||
dataType: 'number',
|
dataType: 'number',
|
||||||
operationType: 'static_value',
|
operationType: 'static_value',
|
||||||
isStaticValue: true,
|
|
||||||
isBucketed: false,
|
isBucketed: false,
|
||||||
scale: 'ratio',
|
scale: 'ratio',
|
||||||
params: { ...previousParams, value: String(previousParams.value ?? defaultValue) },
|
params: { ...previousParams, value: String(previousParams.value ?? defaultValue) },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue