fix(chalice): enforce AND operator for table of requests and table of pages
This commit is contained in:
parent
3ca71ec211
commit
74ed29915b
1 changed files with 10 additions and 0 deletions
|
|
@ -1030,6 +1030,16 @@ class CardTable(__CardSchema):
|
||||||
values["metricValue"] = []
|
values["metricValue"] = []
|
||||||
return values
|
return values
|
||||||
|
|
||||||
|
@model_validator(mode="after")
|
||||||
|
def __enforce_AND_operator(self):
|
||||||
|
self.metric_of = MetricOfTable(self.metric_of)
|
||||||
|
if self.metric_of in (MetricOfTable.VISITED_URL, MetricOfTable.FETCH, \
|
||||||
|
MetricOfTable.VISITED_URL.value, MetricOfTable.FETCH.value):
|
||||||
|
for s in self.series:
|
||||||
|
if s.filter is not None:
|
||||||
|
s.filter.events_order = SearchEventOrder.AND
|
||||||
|
return self
|
||||||
|
|
||||||
@model_validator(mode="after")
|
@model_validator(mode="after")
|
||||||
def __transform(self):
|
def __transform(self):
|
||||||
self.metric_of = MetricOfTable(self.metric_of)
|
self.metric_of = MetricOfTable(self.metric_of)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue