Act on single notification threads and mute repositories locally #278
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/spec-parity-notifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fj statuscould only list the inbox and mark all of it read. Threenotifications requirements of the fjord-client-spec were open (#212).
fj status read <ID>sends PATCH /notifications/threads/{id}, treats theempty 205 as success, then re-reads the thread and only reports success
when the server says it is read. The id comes from a new ID column in the
fj statustable.fj status unsubscribe <ID>resolves the thread's issue or pull request,deletes the current user's subscription, and marks the thread read. A
repository, commit or otherwise unresolvable thread is refused before any
DELETE or PATCH is sent.
fj status mute|unmute|mutedkeep a per-account list in muted_repos.tomlnext to hosts.toml. Names match case-insensitively. The filter runs on
every fetched page, so
--limitstill returns that many visible threads,and
--include-mutedbypasses it. Muted threads still count toward theserver's unread count, which the help text and a stderr note both say.
--limitabove 50 now pages instead of silently clamping.Covered by unit and wiremock tests only; none of this was run against a live forge. The
fj statustable gains anIDcolumn, which shifts the columns for anything parsing the table.First of eight stacked PRs that take the fj column of the fjord-client-spec from 172 to 205 requirements. The other seven sit on this branch in order.
Closes #212
Verified on macOS at this commit:
cargo fmt --allclean,cargo clippy --all-targets --all-features -- -D warningsclean,cargo test --allgreen.