Skip to content

Add sync outbox for article statuses#2069

Merged
jocmp merged 1 commit intomainfrom
jc/sync-outbox
Apr 29, 2026
Merged

Add sync outbox for article statuses#2069
jocmp merged 1 commit intomainfrom
jc/sync-outbox

Conversation

@jocmp
Copy link
Copy Markdown
Owner

@jocmp jocmp commented Apr 27, 2026

Mirrors NetNewsWire's syncStatus pattern where every read/star event writes to a new article_sync_statuses table.

Account#refresh will drain the queue via the existing delegate APIs. When the app is in a foreground state, a 2-minute view model-level timer will also drain the statuses.

Replaces the failure-only WorkManager fallback path.

Ref

Mirrors NetNewsWire's syncStatus pattern: every read/star change
writes to a new article_sync_statuses table; Account.refresh and a
2-minute ViewModel timer drain the queue via the existing delegate
APIs. Replaces the failure-only WorkManager fallback path.
@jocmp jocmp marked this pull request as ready for review April 29, 2026 00:28
@jocmp jocmp merged commit fadbb11 into main Apr 29, 2026
2 checks passed
@jocmp jocmp deleted the jc/sync-outbox branch April 29, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant