Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Show information about notification fetches on "About" screen #454

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

nikclayton
Copy link
Contributor

Some users report that Pachli is not retrieving/displaying notifications in a timely fashion.

To assist in diagnosing these errors, provide an additional set of tabs on the "About" screen that contain information about how Pachli is fetching notifications, and if not, why not.

Allow the user to save notification related logs and other details to a file that can be attached to an e-mail or bug report.

Recording data:

  • Provide a NotificationConfig singleton with properties to record different aspects of the notification configuration. Update these properties as different notification actions occur.

  • Store logs in a LogEntryEntity table. Log events of interest with a new Timber LogEntryTree that is planted in all cases.

  • Add PruneLogEntryEntityWorker to trim saved logs to the last 48 hours.

Display:

  • Add a NotificationFragment to AboutActivity. It hosts two other fragments in tabs to show details from NotificationConfig and the relevant logs, as well as controls for interacting with them.

Bug fixes:

  • Filter out notifications with a null tag when processing active notifications, prevents an NPE crash

Other changes:

  • Log more details when errors occur so the bug reports are more helpful

Some users report that Pachli is not retrieving/displaying notifications
in a timely fashion.

To assist in diagnosing these errors, provide an additional set of tabs
on the "About" screen that contain information about how Pachli is
fetching notifications, and if not, why not.

Allow the user to save notification related logs and other details to
a file that can be attached to an e-mail or bug report.

Recording data:

- Provide a `NotificationConfig` singleton with properties to record
  different aspects of the notification configuration. Update these
  properties as different notification actions occur.

- Store logs in a `LogEntryEntity` table. Log events of interest with
  a new `Timber` `LogEntryTree` that is planted in all cases.

- Add `PruneLogEntryEntityWorker` to trim saved logs to the last 48
  hours.

Display:

- Add a `NotificationFragment` to `AboutActivity`. It hosts two other
  fragments in tabs to show details from `NotificationConfig` and the
  relevant logs, as well as controls for interacting with them.

Bug fixes:

- Filter out notifications with a null tag when processing active
  notifications, prevents an NPE crash

Other changes:

- Log more details when errors occur so the bug reports are more helpful
@nikclayton nikclayton merged commit 23e3cf1 into pachli:main Feb 17, 2024
6 checks passed
@nikclayton nikclayton deleted the 36-about-notification-tab branch February 17, 2024 14:57
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.

None yet

1 participant