Skip to content

Commit

Permalink
feat(chalice): support table-of-URLs showing user-count
Browse files Browse the repository at this point in the history
  • Loading branch information
tahayk committed Jul 1, 2024
1 parent a1b4721 commit a3ba089
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/schemas/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,9 @@ def __transform(cls, values):

@model_validator(mode="after")
def __validator(cls, values):
if values.metric_of not in (MetricOfTable.issues, MetricOfTable.user_browser, MetricOfTable.user_device):
if values.metric_of not in (MetricOfTable.issues, MetricOfTable.user_browser,
MetricOfTable.user_device, MetricOfTable.user_country,
MetricOfTable.visited_url):
assert values.metric_format == MetricExtendedFormatType.session_count, \
f'metricFormat:{MetricExtendedFormatType.user_count.value} is not supported for this metricOf'
return values
Expand Down

0 comments on commit a3ba089

Please sign in to comment.