department-of-veterans-affairs / va-mobile-app

"If VA were a company, it would have a flagship mobile app."
https://department-of-veterans-affairs.github.io/va-mobile-app/
10 stars 1 forks source link

CU - Ensure API Error statuses/objects are logged to firebase #5626

Open dumathane opened 1 year ago

dumathane commented 1 year ago

Proposed Change

We need to ensure our logNonFatalErrorToFirebase will actually log an api error object to firebase for our review.

Why Should We Prioritize?

This will help us prioritize different api errors we are not prepared to respond with.

Coding Time Estimation

3

Testing Considerations

Checklist

TKDickson commented 1 year ago

QA estimate: 0 points, untestable. @bischoffa

alexandec commented 1 year ago

I have a solution for this, but have been unable to test it because Firebase Crashlytics does not send reports during local development. I attempted to override the settings to enable sending of reports, but this failed due to our older Firebase version. Upgrading our Firebase version should allow overriding the defaults so the reports are sent. I'm marking this ticket as blocked by the Firebase upgrade.

alexandec commented 1 year ago

How to override the defaults and send reports: https://invertase.io/blog/react-native-firebase-crashlytics-configuration Discussion with maintainer stating that a Firebase upgrade is required to send reports for iOS debug and release builds: https://github.com/invertase/react-native-firebase/issues/6226

alexandec commented 1 year ago

One other note, I tried Settings -> Developer Screen -> Enable Firebase Debug Mode but that didn't work either. First step remains to update our Firebase packages to the latest version.

alexandec commented 1 year ago

Still blocked pending Firebase client upgrade (see above).

bischoffa commented 12 months ago

@alexandec can you verify we are still blocked? Also is this blocked by ticket 4145?

alexandec commented 12 months ago

@bischoffa that's right, this is still blocked by #4145 (Firebase client upgrade)

bischoffa commented 9 months ago

@timwright12 do you anticipate any major dependency work in Q4?

bischoffa commented 9 months ago

@timwright12 moving this to icebox as I did not see any major dependency work planned for Q4 and this has been blocked for over 3 months now.

alexandec commented 9 months ago

Related to this, I added an analytics event to the logNonFatalErrorToFirebase function which records all non-fatal errors along with error status, endpoint, and additional info. So even though Firebase itself is unchanged, we are accumulating a lot of useful error info. Putting the info into analytics also means we have much more flexible error reporting options. This ticket is still useful but it's less important due to the analytics error reporting.

timwright12 commented 3 days ago

Is this still blocked? It looks like https://github.com/department-of-veterans-affairs/va-mobile-app/issues/4145 was closed out

bischoffa commented 3 days ago

Given untestable, I removed Therese as the assignee.

alexandec commented 2 days ago

@timwright12 I think Global can revisit this ticket, yep