feat: adding an additional case for when metric.metric_type is null inside _update_bigconfig (#6482)
This commit is contained in:
Родитель
2bd130526e
Коммит
1f91163f6c
|
@ -368,6 +368,14 @@ def _update_bigconfig(
|
|||
for collection in bigconfig.tag_deployments:
|
||||
for deployment in collection.deployments:
|
||||
for metric in deployment.metrics:
|
||||
if metric.metric_type is None:
|
||||
err_message = f"""There appears to be an issue parsing \
|
||||
a metric type definition for `{project}.{dataset}.{table}` \
|
||||
metric: {str(metric)} \
|
||||
deployment: {str(deployment)}."""
|
||||
|
||||
raise Exception(err_message)
|
||||
|
||||
if metric.metric_type.predefined_metric in default_metrics:
|
||||
default_metrics.remove(metric.metric_type.predefined_metric)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче