Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion config/proto_field_numbers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ messages:
players_nested: 8
players_object: 9
stadium_location: 10
next_number: 11
result: 11
next_number: 12
Widget:
fields:
id: 1
Expand Down Expand Up @@ -355,6 +356,12 @@ enums:
ALLOY: 1
CARBON_FIBER: 2
next_number: 3
SeasonResult:
values:
WON_CHAMPIONSHIP: 1
MADE_PLAYOFFS: 2
MISSED_PLAYOFFS: 3
next_number: 4
Size:
values:
SMALL: 1
Expand Down
8 changes: 4 additions & 4 deletions config/schema/artifacts/data_warehouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ tables:
forbes_valuation_moneys_object ARRAY<STRUCT<currency STRING, amount_cents INT>>,
current_players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>,
current_players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>,
seasons_nested ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>,
seasons_object ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>,
the_nested_fields STRUCT<forbes_valuation_moneys ARRAY<STRUCT<currency STRING, amount_cents INT>>, current_players ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, the_seasons ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>>,
nested_fields2 STRUCT<forbes_valuation_moneys ARRAY<STRUCT<currency STRING, amount_cents INT>>, current_players ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, the_seasons ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>>,
seasons_nested ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, result STRING, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>,
seasons_object ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, result STRING, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>,
the_nested_fields STRUCT<forbes_valuation_moneys ARRAY<STRUCT<currency STRING, amount_cents INT>>, current_players ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, the_seasons ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, result STRING, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>>,
nested_fields2 STRUCT<forbes_valuation_moneys ARRAY<STRUCT<currency STRING, amount_cents INT>>, current_players ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, the_seasons ARRAY<STRUCT<the_record STRUCT<win_count INT, loss_count INT, last_win_date DATE, first_win_on DATE>, result STRING, year INT, notes ARRAY<STRING>, count INT, started_at TIMESTAMP, won_games_at ARRAY<TIMESTAMP>, was_shortened BOOLEAN, stadium_location STRUCT<lat FLOAT, lon FLOAT>, players_nested ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>, players_object ARRAY<STRUCT<name STRING, nicknames ARRAY<STRING>, affiliations STRUCT<sponsorships_nested ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>, sponsorships_object ARRAY<STRUCT<sponsor_id STRING, annual_total STRUCT<currency STRING, amount_cents INT>>>>, seasons_nested ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>, seasons_object ARRAY<STRUCT<year INT, games_played INT, awards ARRAY<STRING>>>>>>>>,
staff STRUCT<coaches ARRAY<STRUCT<id STRING, name STRING, salary INT>>, general_manager STRUCT<id STRING, name STRING, salary INT>>
)
widget_currencies:
Expand Down
10 changes: 10 additions & 0 deletions config/schema/artifacts/datastore_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ index_templates:
first_win_on:
type: date
format: strict_date
result:
type: keyword
year:
type: integer
notes:
Expand Down Expand Up @@ -402,6 +404,8 @@ index_templates:
first_win_on:
type: date
format: strict_date
result:
type: keyword
year:
type: integer
notes:
Expand Down Expand Up @@ -653,6 +657,8 @@ index_templates:
first_win_on:
type: date
format: strict_date
result:
type: keyword
year:
type: integer
notes:
Expand Down Expand Up @@ -942,6 +948,8 @@ index_templates:
first_win_on:
type: date
format: strict_date
result:
type: keyword
year:
type: integer
notes:
Expand Down Expand Up @@ -1212,6 +1220,8 @@ index_templates:
type: integer
seasons_object|the_record|first_win_on:
type: integer
seasons_object|result:
type: integer
seasons_object|year:
type: integer
seasons_object|notes:
Expand Down
11 changes: 11 additions & 0 deletions config/schema/artifacts/json_schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,12 @@ json_schema_version: 1
required:
- x
- "y"
SeasonResult:
type: string
enum:
- WON_CHAMPIONSHIP
- MADE_PLAYOFFS
- MISSED_PLAYOFFS
Size:
type: string
enum:
Expand Down Expand Up @@ -1044,6 +1050,10 @@ json_schema_version: 1
anyOf:
- "$ref": "#/$defs/TeamRecord"
- type: 'null'
result:
anyOf:
- "$ref": "#/$defs/SeasonResult"
- type: 'null'
year:
anyOf:
- "$ref": "#/$defs/Int"
Expand Down Expand Up @@ -1088,6 +1098,7 @@ json_schema_version: 1
default: TeamSeason
required:
- record
- result
- year
- notes
- count
Expand Down
14 changes: 14 additions & 0 deletions config/schema/artifacts/json_schemas_by_version/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,12 @@ json_schema_version: 1
required:
- x
- "y"
SeasonResult:
type: string
enum:
- WON_CHAMPIONSHIP
- MADE_PLAYOFFS
- MISSED_PLAYOFFS
Size:
type: string
enum:
Expand Down Expand Up @@ -1395,6 +1401,13 @@ json_schema_version: 1
ElasticGraph:
type: TeamRecord
nameInIndex: the_record
result:
anyOf:
- "$ref": "#/$defs/SeasonResult"
- type: 'null'
ElasticGraph:
type: SeasonResult
nameInIndex: result
year:
anyOf:
- "$ref": "#/$defs/Int"
Expand Down Expand Up @@ -1466,6 +1479,7 @@ json_schema_version: 1
default: TeamSeason
required:
- record
- result
- year
- notes
- count
Expand Down
26 changes: 26 additions & 0 deletions config/schema/artifacts/runtime_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2128,6 +2128,8 @@ index_definitions_by_name:
source: __self
__counts.seasons_object|players_object|seasons_object|year:
source: __self
__counts.seasons_object|result:
source: __self
__counts.seasons_object|stadium_location:
source: __self
__counts.seasons_object|stadium_location|lat:
Expand Down Expand Up @@ -2452,6 +2454,8 @@ index_definitions_by_name:
source: __self
nested_fields2.the_seasons.players_object.seasons_object.year:
source: __self
nested_fields2.the_seasons.result:
source: __self
nested_fields2.the_seasons.stadium_location.lat:
source: __self
nested_fields2.the_seasons.stadium_location.lon:
Expand Down Expand Up @@ -2598,6 +2602,8 @@ index_definitions_by_name:
source: __self
seasons_nested.players_object.seasons_object.year:
source: __self
seasons_nested.result:
source: __self
seasons_nested.stadium_location.lat:
source: __self
seasons_nested.stadium_location.lon:
Expand Down Expand Up @@ -2706,6 +2712,8 @@ index_definitions_by_name:
source: __self
seasons_object.players_object.seasons_object.year:
source: __self
seasons_object.result:
source: __self
seasons_object.stadium_location.lat:
source: __self
seasons_object.stadium_location.lon:
Expand Down Expand Up @@ -2924,6 +2932,8 @@ index_definitions_by_name:
source: __self
the_nested_fields.the_seasons.players_object.seasons_object.year:
source: __self
the_nested_fields.the_seasons.result:
source: __self
the_nested_fields.the_seasons.stadium_location.lat:
source: __self
the_nested_fields.the_seasons.stadium_location.lon:
Expand Down Expand Up @@ -6800,6 +6810,10 @@ object_types_by_name:
resolver:
name: object_without_lookahead
graphql_only_return_type: true
SeasonResultListFilterInput:
graphql_fields_by_name:
count:
name_in_index: __counts
SizeListFilterInput:
graphql_fields_by_name:
count:
Expand Down Expand Up @@ -7839,6 +7853,9 @@ object_types_by_name:
name_in_index: the_record
resolver:
name: get_record_field_value
result:
resolver:
name: get_record_field_value
stadium_location:
resolver:
name: get_record_field_value
Expand Down Expand Up @@ -7869,6 +7886,9 @@ object_types_by_name:
name_in_index: the_record
resolver:
name: object_with_lookahead
result:
resolver:
name: object_with_lookahead
stadium_location:
resolver:
name: object_with_lookahead
Expand Down Expand Up @@ -7908,6 +7928,9 @@ object_types_by_name:
name_in_index: the_record
resolver:
name: object_with_lookahead
result:
resolver:
name: object_with_lookahead
stadium_location:
resolver:
name: object_with_lookahead
Expand Down Expand Up @@ -7935,6 +7958,9 @@ object_types_by_name:
players_object:
resolver:
name: get_record_field_value
result:
resolver:
name: get_record_field_value
TeamSeasonListFilterInput:
graphql_fields_by_name:
count:
Expand Down
Loading
Loading