fix: filter tags override inherited type tags

This commit is contained in:
Wieland Schöbl
2021-09-28 12:49:02 +00:00
parent 61b1fde0ec
commit f0401e1889
41 changed files with 218 additions and 257 deletions

View File

@@ -29,7 +29,8 @@ export interface AggArray {
}
type Foo = 'A' | 'B' | 'C';
export const aggArrayTest: MapAggTestOptions = {
export const testConfig: MapAggTestOptions = {
testName: 'Aggregation tag should propagate on arrays',
name: ThingType.AggArray,
agg: {
fields: ['array'],

View File

@@ -30,7 +30,8 @@ export interface AggGlobalNested {
type: ThingType.AggGlobalNested;
}
export const aggGlobalNestedTest: MapAggTestOptions = {
export const testConfig: MapAggTestOptions = {
testName: 'Global aggregations when nested',
name: ThingType.AggGlobalNested,
agg: {
globals: ['foo'],

View File

@@ -28,7 +28,8 @@ export interface AggGlobal {
type: ThingType.AggGlobal;
}
export const aggGlobalTest: MapAggTestOptions = {
export const testConfig: MapAggTestOptions = {
testName: 'Global option should work',
name: ThingType.AggGlobal,
agg: {
globals: ['foo'],

View File

@@ -31,7 +31,8 @@ interface Foo {
bar: string;
}
export const aggInheritedGlobalTest: MapAggTestOptions = {
export const testConfig: MapAggTestOptions = {
testName: 'Inherited global aggregations should work',
name: ThingType.AggInheritedGlobal,
agg: {
globals: ['bar'],

View File

@@ -36,7 +36,8 @@ interface Foo {
bar: string;
}
export const aggInheritedOverwrittenTest: MapAggTestOptions = {
export const testConfig: MapAggTestOptions = {
testName: 'Inherited aggregations should work when overwritten',
name: ThingType.AggInherited,
agg: {
fields: ['bar'],

View File

@@ -31,7 +31,8 @@ interface Foo {
bar: string;
}
export const aggInheritedTest: MapAggTestOptions = {
export const testConfig: MapAggTestOptions = {
testName: 'Inherited aggregations should work',
name: ThingType.AggInherited,
agg: {
fields: ['bar'],

View File

@@ -30,7 +30,8 @@ export interface AggNested {
type: ThingType.AggNested;
}
export const aggNestedTest: MapAggTestOptions = {
export const testConfig: MapAggTestOptions = {
testName: 'Should work on nested properties',
name: ThingType.AggNested,
agg: {
fields: ['nested.foo'],