From 85d4536486cd0f4ec4e13b02897c230f837c7e9b Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Thu, 25 Jun 2020 11:13:33 +0200 Subject: [PATCH] docs: Update some comments for the new release versioning scheme. With the new scheme, the equivalent of 2.3 is 4.0. --- zerver/tornado/event_queue.py | 2 +- zerver/worker/queue_processors.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/tornado/event_queue.py b/zerver/tornado/event_queue.py index 120303af7f..1dcb4b42ad 100644 --- a/zerver/tornado/event_queue.py +++ b/zerver/tornado/event_queue.py @@ -1130,7 +1130,7 @@ def process_notification(notice: Mapping[str, Any]) -> None: # compatibility with events in that format still in the # queue at the time of upgrade. # - # TODO: Remove this block in release >= 2.3. + # TODO: Remove this block in release >= 4.0. user_ids: List[int] = [user['id'] for user in cast(List[Mapping[str, int]], users)] else: diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.py index fef0686d3b..83f8a43141 100644 --- a/zerver/worker/queue_processors.py +++ b/zerver/worker/queue_processors.py @@ -398,7 +398,7 @@ class UserActivityWorker(LoopQueueProcessingWorker): # This is for compatibility with older events still stuck in the queue, # that used the client name in event["client"] instead of having # event["client_id"] directly. - # TODO: This can be deleted for release >= 2.3. + # TODO: This can be deleted for release >= 4.0. if event["client"] not in self.client_id_map: client = get_client(event["client"]) self.client_id_map[event["client"]] = client.id