|
@@ -16,6 +16,7 @@ from snuba_sdk import (
|
|
Limit,
|
|
Limit,
|
|
Offset,
|
|
Offset,
|
|
Op,
|
|
Op,
|
|
|
|
+ Or,
|
|
Query,
|
|
Query,
|
|
Request,
|
|
Request,
|
|
)
|
|
)
|
|
@@ -392,7 +393,12 @@ def query_replays_dataset_tagkey_values(
|
|
Condition(Column("project_id"), Op.IN, project_ids),
|
|
Condition(Column("project_id"), Op.IN, project_ids),
|
|
Condition(Column("timestamp"), Op.LT, end),
|
|
Condition(Column("timestamp"), Op.LT, end),
|
|
Condition(Column("timestamp"), Op.GTE, start),
|
|
Condition(Column("timestamp"), Op.GTE, start),
|
|
- Condition(Column("is_archived"), Op.IS_NULL),
|
|
|
|
|
|
+ Or(
|
|
|
|
+ [
|
|
|
|
+ Condition(Column("is_archived"), Op.EQ, 0),
|
|
|
|
+ Condition(Column("is_archived"), Op.IS_NULL),
|
|
|
|
+ ]
|
|
|
|
+ ),
|
|
*where,
|
|
*where,
|
|
],
|
|
],
|
|
orderby=[OrderBy(Column("times_seen"), Direction.DESC)],
|
|
orderby=[OrderBy(Column("times_seen"), Direction.DESC)],
|