|
@@ -212,7 +212,9 @@ class SnubaProtocolEventStream(EventStream):
|
|
|
state["datetime"] = datetime.now(tz=pytz.utc)
|
|
|
self._send(state["project_id"], "end_delete_tag", extra_data=(state,), asynchronous=False)
|
|
|
|
|
|
- def tombstone_events_unsafe(self, project_id, event_ids, old_primary_hash=False):
|
|
|
+ def tombstone_events_unsafe(
|
|
|
+ self, project_id, event_ids, old_primary_hash=False, from_timestamp=None, to_timestamp=None
|
|
|
+ ):
|
|
|
"""
|
|
|
Tell Snuba to eventually delete these events.
|
|
|
|
|
@@ -239,6 +241,8 @@ class SnubaProtocolEventStream(EventStream):
|
|
|
"project_id": project_id,
|
|
|
"event_ids": event_ids,
|
|
|
"old_primary_hash": old_primary_hash,
|
|
|
+ "from_timestamp": from_timestamp,
|
|
|
+ "to_timestamp": to_timestamp,
|
|
|
}
|
|
|
self._send(project_id, "tombstone_events", extra_data=(state,), asynchronous=False)
|
|
|
|