From bfc5a63f38acfc286859176735bf73f1c15d6d27 Mon Sep 17 00:00:00 2001 From: rosstimothy <39066650+rosstimothy@users.noreply.github.com> Date: Fri, 14 Jul 2023 10:38:52 -0400 Subject: [PATCH] Remove session condition from Firestore events query (#29114) Firestore only allows a single equality operation on queriers. Reverting to prevent errors when viewing Audit Logs. --- lib/events/firestoreevents/firestoreevents.go | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/events/firestoreevents/firestoreevents.go b/lib/events/firestoreevents/firestoreevents.go index 769fe9c16070a..b76ac56d94d1d 100644 --- a/lib/events/firestoreevents/firestoreevents.go +++ b/lib/events/firestoreevents/firestoreevents.go @@ -383,7 +383,6 @@ func (l *Log) searchEventsWithFilter(fromUTC, toUTC time.Time, namespace string, } query := l.svc.Collection(l.CollectionName). - Where(sessionIDDocProperty, "!=", ""). // exclude any non audit event documents in the collection Where(eventNamespaceDocProperty, "==", apidefaults.Namespace). Where(createdAtDocProperty, ">=", fromUTC.Unix()). Where(createdAtDocProperty, "<=", toUTC.Unix())