mirror of
https://github.com/block/buzz.git
synced 2026-11-25 10:42:26 +00:00
fix(mobile): read before a switch changes anything and keep subscriber throws visible without a destination
A community switch read the saved list after saving the new active ID, so a failed read left the disk on the new community and every retry returned early. It now reads first. With no reporting destination, the subscriber guard swallowed the error that used to fail the test that hit it and print in development. The no-op reporter now hands subscriber errors to the zone as uncaught. Also: report an invalid OK rejection with no pending publish, throw a new error object for each new report so Sentry does not drop repeats, and correct the spec's status and out-of-scope lines. Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost> Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Mobile diagnostic reporting
|
||||
|
||||
Status: step one in progress. Implemented: the reporting module and explicit error reports. Still to come: networking counts.
|
||||
Status: step one in progress. Implemented: the reporting module and explicit error reports (for push, the relay's capability descriptor; push gateway replies are not reported yet). Still to come: networking counts.
|
||||
|
||||
Terminology is defined in [CONTEXT.md](../CONTEXT.md#mobile-builds). The decisions behind this spec are in [ADR 0007](adr/0007-diagnostic-reporting-follows-the-destination.md) and [ADR 0008](adr/0008-sentry-for-mobile-diagnostic-reporting.md).
|
||||
|
||||
@@ -74,7 +74,7 @@ A build that is given a [reporting destination](../CONTEXT.md#reporting-destinat
|
||||
- Alert rules, dashboards and the destination's own configuration, which belong to whoever owns the destination.
|
||||
- Diagnostic reporting in a [public build](../CONTEXT.md#public-build). Nothing prevents it, but what a report carries was chosen for internal builds. Turning it on there first needs the member's public key and the server host names removed, the rest of the list reviewed, and a way to tell people ([ADR 0007](adr/0007-diagnostic-reporting-follows-the-destination.md)). Because identity and every attribute pass through one module, that is a small code change.
|
||||
- Usage or behavior data of any kind, beyond the SDK's session records described above.
|
||||
- Fixing the bugs the reports will reveal, including two found while planning: one subscriber that throws can lose the rest of a batch of events, and a catch-all in account requests presents every error as an outage.
|
||||
- Fixing the bugs the reports will reveal, including one found while planning: a catch-all in account requests presents every error as an outage.
|
||||
|
||||
## Further notes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user