Repository navigation
feat: push notifications when syncing stops - #210
Open
builtbyproxy wants to merge 6 commits into
Open
builtbyproxy wants to merge 6 commits into
builtbyproxy wants to merge 6 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No linked issue.
Release notes
When a login stops working, syncing for that account stops too, and until now the only signs were a line in Jellyfin's activity log and a badge on the dashboard. Admins can now enter an ntfy topic address under Integrations and get a push notification when a Letterboxd login is paused, when Serializd rejects a login, or when Jellyscribe gives up on a film after repeated failures. It is off until you save an address, each problem notifies once rather than on every sync, and a message never contains a password, token or Serializd email address.
What's broken
Syncing can stop for an account without anyone noticing. A changed password pauses a Letterboxd login, Serializd can start refusing a login, and a film Letterboxd has no entry for is dropped after repeated failures. Each of these is visible only to someone who opens the dashboard or the activity log.
Why it happens
What this PR does
.gstack-redact-allowlist(new, repo root): lets the local pre-push secret check accept the two placeholder sample addresses used in a test and the spec (user:pw@ntfy.example.com,user:password@ntfy.example.com). Not shipped.add-sync-failure-notifications(new capabilitysync-failure-notifications). Version 2.16.0.Accepted risks, recorded in the design: a token sent to an
httpaddress is unencrypted on the network (the README says so), and a Serializd 403 is treated as a rejected login.How to test
dotnet test -c Release --filter "FullyQualifiedName~Notif"for the new tests; the full suite is 1,631 passed, 17 skipped, 0 failed.Checked by hand on throwaway Jellyfin 10.11.11 (with a base URL) and 12.4.0 against an ntfy 2.38.3 server:
Not checked live: the films notification (it needs a working Letterboxd login; unit tests drive the real runner and playback handler). The browser check was not repeated after the review fixes, which changed the page's address check only.
Screenshots
Admin, Integrations tab (Jellyfin 10.11):
Admin, Integrations tab (Jellyfin 12.4):
New states (no "before"):
Follow-ups (not in this PR)
add-sync-failure-notificationsonce 2.16.0 ships.