Skip to content

Commit 861cbe7

Browse files
authored
[Lens] Fix merge type issues (elastic#250165)
## Summary elastic#246738 was merged close to elastic#244743 creating a type issue due to the change in the `version` type for the lens SO.
1 parent 8bd3362 commit 861cbe7

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/platform/packages/shared/kbn-lens-embeddable-utils/config_builder/tests/datatable/lens_state_config_dsl.mock.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const singleMetricDatatableAttributes: LensAttributes = {
7070
internalReferences: [],
7171
adHocDataViews: {},
7272
},
73-
version: 1,
73+
version: 2,
7474
references: [
7575
{
7676
type: 'index-pattern',
@@ -196,7 +196,7 @@ export const singleMetricRowSplitDatatableAttributes: LensAttributes = {
196196
internalReferences: [],
197197
adHocDataViews: {},
198198
},
199-
version: 1,
199+
version: 2,
200200
references: [
201201
{
202202
type: 'index-pattern',
@@ -386,7 +386,7 @@ export const multiMetricRowSplitDatatableAttributes: LensAttributes = {
386386
internalReferences: [],
387387
adHocDataViews: {},
388388
},
389-
version: 1,
389+
version: 2,
390390
references: [
391391
{
392392
type: 'index-pattern',
@@ -697,7 +697,7 @@ export const fullConfigDatatableAttributes: LensAttributes = {
697697
internalReferences: [],
698698
adHocDataViews: {},
699699
},
700-
version: 1,
700+
version: 2,
701701
references: [
702702
{
703703
type: 'index-pattern',
@@ -854,7 +854,7 @@ export const sortedByTransposedMetricColumnDatatableAttributes: LensAttributes =
854854
internalReferences: [],
855855
adHocDataViews: {},
856856
},
857-
version: 1,
857+
version: 2,
858858
references: [
859859
{
860860
type: 'index-pattern',
@@ -1011,7 +1011,7 @@ export const sortedByRowDatatableAttributes: LensAttributes = {
10111011
internalReferences: [],
10121012
adHocDataViews: {},
10131013
},
1014-
version: 1,
1014+
version: 2,
10151015
references: [
10161016
{
10171017
type: 'index-pattern',

src/platform/packages/shared/kbn-lens-embeddable-utils/config_builder/tests/datatable/lens_state_config_esql.mock.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const singleMetricESQLDatatableAttributes: LensAttributes = {
6666
needsRefresh: false,
6767
},
6868
visualizationType: 'lnsDatatable',
69-
version: 1,
69+
version: 2,
7070
};
7171

7272
export const singleMetricRowSplitESQLDatatableAttributes: LensAttributes = {
@@ -165,7 +165,7 @@ export const singleMetricRowSplitESQLDatatableAttributes: LensAttributes = {
165165
},
166166
},
167167
visualizationType: 'lnsDatatable',
168-
version: 1,
168+
version: 2,
169169
};
170170

171171
export const multipleMetricRowSplitESQLDatatableAttributes: LensAttributes = {
@@ -317,7 +317,7 @@ export const multipleMetricRowSplitESQLDatatableAttributes: LensAttributes = {
317317
},
318318
},
319319
visualizationType: 'lnsDatatable',
320-
version: 1,
320+
version: 2,
321321
};
322322

323323
export const fullConfigESQLDatatableAttributes: LensAttributes = {
@@ -532,7 +532,7 @@ export const fullConfigESQLDatatableAttributes: LensAttributes = {
532532
},
533533
},
534534
visualizationType: 'lnsDatatable',
535-
version: 1,
535+
version: 2,
536536
};
537537

538538
export const sortedByTransposedMetricColumnESQLDatatableAttributes: LensAttributes = {
@@ -683,5 +683,5 @@ export const sortedByTransposedMetricColumnESQLDatatableAttributes: LensAttribut
683683
},
684684
},
685685
},
686-
version: 1,
686+
version: 2,
687687
};

0 commit comments

Comments
 (0)