mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
Start using operator/operands internally in Filter class.
By having Filter.canonicalize_tuple() call filter_term(), we make it so that Filter objects get operator/operand fields in their terms when we initialize this. This mostly caused test breakage for tests that were doing assert.deepEqual; now we just check to make sure that the field we need are there. (imported from commit 63b2516dc72edeb11e76a1fa4442570b9c605baa)
This commit is contained in:
@@ -103,7 +103,7 @@ Filter.canonicalize_tuple = function (tuple) {
|
||||
}
|
||||
|
||||
// We may want to consider allowing mixed-case operators at some point
|
||||
return [operator, operand];
|
||||
return filter_term(operator, operand);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user