From aad0d9da63d106725e8ab24739881d094eea1e65 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Tue, 21 May 2024 21:27:23 -0700 Subject: [PATCH] xrpc_sync.subscribeRepos: add support for non-commit events ...starting with account tombstones. for https://github.com/snarfed/bridgy-fed/issues/783 --- README.md | 6 ++++-- app.yaml | 2 +- arroba/storage.py | 17 +++++++++++------ arroba/tests/test_storage.py | 10 +++++----- arroba/tests/test_xrpc_sync.py | 13 +++++++++++++ arroba/xrpc_sync.py | 25 +++++++++++++++++-------- 6 files changed, 51 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 2a7c7d1..ef9d168 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Configure arroba with these environment variables: Optional, only used in [com.atproto.repo](https://arroba.readthedocs.io/en/stable/source/arroba.html#module-arroba.xrpc_repo), [.server](https://arroba.readthedocs.io/en/stable/source/arroba.html#module-arroba.xrpc_server), and [.sync](https://arroba.readthedocs.io/en/stable/source/arroba.html#module-arroba.xrpc_sync) XRPC handlers: * `REPO_TOKEN`, static token to use as both `accessJwt` and `refreshJwt`, defaults to contents of `repo_token` file. Not required to be an actual JWT. If not set, XRPC methods that require auth will return HTTP 501 Not Implemented. -* `ROLLBACK_WINDOW`, number of commits to serve in the [`subscribeRepos` rollback window](https://atproto.com/specs/event-stream#sequence-numbers). Defaults to no limit. +* `ROLLBACK_WINDOW`, number of events to serve in the [`subscribeRepos` rollback window](https://atproto.com/specs/event-stream#sequence-numbers). Defaults to no limit.