Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Improve analytics error handling (DEV) #2413

Merged
merged 5 commits into from
Feb 19, 2021

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Feb 18, 2021

If there is a bug in a single data donation module, we don't want to abort the process and we do want the modules to have a chance to cleanup their state instead of just throwing the exception and leaving everyone hanging.

This change catches the exceptions logs them and lets the process continue, talked with @mlenkeit and continuing with the data we have is the desired behavior.

For tester builds we log this into the error tool such that testers can easily check if something went wrong without having to parse the log.

Testing

  • Review code
  • Check analytics submission via test menu

…ontinue.

On tester builds log these background issues in the bug reporter.
@d4rken d4rken added maintainers Tag pull requests created by maintainers prio PRs to review first. labels Feb 18, 2021
@d4rken d4rken added this to the 1.13.0 milestone Feb 18, 2021
@d4rken d4rken requested a review from a team February 18, 2021 16:23
@ralfgehrer ralfgehrer self-assigned this Feb 18, 2021
Copy link
Contributor

@ralfgehrer ralfgehrer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested on Pixel (Android 10)

Copy link
Contributor

@jurajkusnier jurajkusnier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested on Pixel 4 (Android 11)

@sonarcloud
Copy link

sonarcloud bot commented Feb 19, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

92.3% 92.3% Coverage
0.0% 0.0% Duplication

@harambasicluka harambasicluka merged commit c985080 into release/1.13.x Feb 19, 2021
@harambasicluka harambasicluka deleted the fix/DEV-analytics-error-handling branch February 19, 2021 08:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants