QA stats aggregation: exclude isFile / isError pages from stats (#1879)

Follow-up to: #1868, exclude pages that have isFile or isError set to
true from the stats aggregation.
This commit is contained in:
Ilya Kreymer 2024-06-25 08:54:42 -07:00 committed by GitHub
parent 7af3980323
commit 3bd714ea9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -577,7 +577,13 @@ class PageOps:
boundaries.append(1.1)
aggregate = [
{"$match": {"crawl_id": crawl_id}},
{
"$match": {
"crawl_id": crawl_id,
"isFile": {"$ne": True},
"isError": {"$ne": True},
}
},
{
"$bucket": {
"groupBy": f"$qa.{qa_run_id}.{key}",