Skip to content

Commit ce9d5c3

Browse files
committed
Use returnable: false in the widgets test schema
1 parent caabea3 commit ce9d5c3

14 files changed

Lines changed: 979 additions & 0 deletions

File tree

config/schema/artifacts/data_warehouse.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ tables:
113113
cost_currency_primary_continent STRING,
114114
cost_currency_introduced_on DATE,
115115
name STRING,
116+
internal_name STRING,
116117
name_text STRING,
117118
description STRING,
118119
created_at TIMESTAMP,
@@ -122,6 +123,7 @@ tables:
122123
release_dates ARRAY<DATE>,
123124
component_ids ARRAY<STRING>,
124125
options STRUCT<size STRING, the_sighs STRING, color STRING, is_draft BOOLEAN>,
126+
internal_details STRUCT<name STRING>,
125127
the_opts STRUCT<size STRING, the_sighs STRING, color STRING, is_draft BOOLEAN>,
126128
inventor STRUCT<name STRING, nationality STRING, stock_ticker STRING, __typename STRING>,
127129
named_inventor STRUCT<name STRING, nationality STRING, stock_ticker STRING, __typename STRING>,

config/schema/artifacts/datastore_config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,8 @@ index_templates:
13551355
format: strict_date
13561356
name:
13571357
type: keyword
1358+
internal_name:
1359+
type: keyword
13581360
name_text:
13591361
type: text
13601362
description:
@@ -1386,6 +1388,10 @@ index_templates:
13861388
type: keyword
13871389
is_draft:
13881390
type: boolean
1391+
internal_details:
1392+
properties:
1393+
name:
1394+
type: keyword
13891395
the_opts:
13901396
properties:
13911397
size:
@@ -1463,6 +1469,10 @@ index_templates:
14631469
required: true
14641470
_size:
14651471
enabled: true
1472+
_source:
1473+
excludes:
1474+
- internal_name
1475+
- internal_details.*
14661476
settings:
14671477
index.mapping.ignore_malformed: false
14681478
index.mapping.coerce: false

config/schema/artifacts/json_schemas.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,12 @@ json_schema_version: 1
862862
- "$ref": "#/$defs/String"
863863
- maxLength: 8191
864864
- type: 'null'
865+
internal_name:
866+
anyOf:
867+
- allOf:
868+
- "$ref": "#/$defs/String"
869+
- maxLength: 8191
870+
- type: 'null'
865871
name_text:
866872
anyOf:
867873
- allOf:
@@ -902,6 +908,10 @@ json_schema_version: 1
902908
anyOf:
903909
- "$ref": "#/$defs/WidgetOptions"
904910
- type: 'null'
911+
internal_details:
912+
anyOf:
913+
- "$ref": "#/$defs/WidgetInternalDetails"
914+
- type: 'null'
905915
the_options:
906916
anyOf:
907917
- "$ref": "#/$defs/WidgetOptions"
@@ -953,6 +963,7 @@ json_schema_version: 1
953963
- cost_currency_primary_continent
954964
- cost_currency_introduced_on
955965
- name
966+
- internal_name
956967
- name_text
957968
- description
958969
- created_at
@@ -962,6 +973,7 @@ json_schema_version: 1
962973
- release_dates
963974
- component_ids
964975
- options
976+
- internal_details
965977
- the_options
966978
- inventor
967979
- named_inventor
@@ -973,6 +985,21 @@ json_schema_version: 1
973985
- metadata
974986
description: For more performant queries on this type, please filter on `workspace_id`
975987
if possible.
988+
WidgetInternalDetails:
989+
type: object
990+
properties:
991+
name:
992+
anyOf:
993+
- allOf:
994+
- "$ref": "#/$defs/String"
995+
- maxLength: 8191
996+
- type: 'null'
997+
__typename:
998+
type: string
999+
const: WidgetInternalDetails
1000+
default: WidgetInternalDetails
1001+
required:
1002+
- name
9761003
WidgetOptions:
9771004
type: object
9781005
properties:

config/schema/artifacts/json_schemas_by_version/v1.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,15 @@ json_schema_version: 1
11621162
ElasticGraph:
11631163
type: String
11641164
nameInIndex: name
1165+
internal_name:
1166+
anyOf:
1167+
- allOf:
1168+
- "$ref": "#/$defs/String"
1169+
- maxLength: 8191
1170+
- type: 'null'
1171+
ElasticGraph:
1172+
type: String
1173+
nameInIndex: internal_name
11651174
name_text:
11661175
anyOf:
11671176
- allOf:
@@ -1229,6 +1238,13 @@ json_schema_version: 1
12291238
ElasticGraph:
12301239
type: WidgetOptions
12311240
nameInIndex: options
1241+
internal_details:
1242+
anyOf:
1243+
- "$ref": "#/$defs/WidgetInternalDetails"
1244+
- type: 'null'
1245+
ElasticGraph:
1246+
type: WidgetInternalDetails
1247+
nameInIndex: internal_details
12321248
the_options:
12331249
anyOf:
12341250
- "$ref": "#/$defs/WidgetOptions"
@@ -1307,6 +1323,7 @@ json_schema_version: 1
13071323
- cost_currency_primary_continent
13081324
- cost_currency_introduced_on
13091325
- name
1326+
- internal_name
13101327
- name_text
13111328
- description
13121329
- created_at
@@ -1316,6 +1333,7 @@ json_schema_version: 1
13161333
- release_dates
13171334
- component_ids
13181335
- options
1336+
- internal_details
13191337
- the_options
13201338
- inventor
13211339
- named_inventor
@@ -1327,6 +1345,24 @@ json_schema_version: 1
13271345
- metadata
13281346
description: For more performant queries on this type, please filter on `workspace_id`
13291347
if possible.
1348+
WidgetInternalDetails:
1349+
type: object
1350+
properties:
1351+
name:
1352+
anyOf:
1353+
- allOf:
1354+
- "$ref": "#/$defs/String"
1355+
- maxLength: 8191
1356+
- type: 'null'
1357+
ElasticGraph:
1358+
type: String
1359+
nameInIndex: name
1360+
__typename:
1361+
type: string
1362+
const: WidgetInternalDetails
1363+
default: WidgetInternalDetails
1364+
required:
1365+
- name
13301366
WidgetOptions:
13311367
type: object
13321368
properties:

0 commit comments

Comments
 (0)