Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Do not error on old stats which we no longer have.
Alex Vandiver51b7a2fb2349
diff --git a/zilencer/views.py b/zilencer/views.pyindex b5e5498eac7..3991154dca8 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -759,9 +759,17 @@ def validate_incoming_table_data() -> None:last_id = get_last_id_from_server(server, model)for row in rows:- if is_count_stat and (- row["property"] not in COUNT_STATS- or row["property"] in BOUNCER_ONLY_REMOTE_COUNT_STAT_PROPERTIES+ # We are silent about stats not in COUNT_STATS which are+ # in LOGGING_COUNT_STAT_PROPERTIES_NOT_SENT_TO_BOUNCER --+ # these are stats we stopped recording, but old versions+ # may still have and report.+ if (+ is_count_stat+ and (+ row["property"] not in COUNT_STATS+ or row["property"] in BOUNCER_ONLY_REMOTE_COUNT_STAT_PROPERTIES+ )+ and row["property"] not in LOGGING_COUNT_STAT_PROPERTIES_NOT_SENT_TO_BOUNCER):raise JsonableError(_("Invalid property {property}").format(property=row["property"]))