-
Notifications
You must be signed in to change notification settings - Fork 532
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
Fix #1104: Offline Exception Logging #1500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more structure question. I wonder if it makes more sense to keep the exception serialization and deserialization (i.e. exceptionToExceptionLog() and exceptionLogtoException) in a separate class considering that multiple codepaths will be deserializing these exceptions @BenHenning thoughts?
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Sarthak2601--did a first pass.
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/crashlytics/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, just a few comments!
domain/src/main/java/org/oppia/domain/oppialogger/exceptions/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/org/oppia/domain/oppialogger/exceptions/ExceptionsController.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more comments.
@Singleton | ||
@Provides | ||
@TestDispatcher | ||
fun provideTestDispatcher(): CoroutineDispatcher { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don’t do this. You should include the test dispatcher module, instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
domain/src/test/java/org/oppia/domain/oppialogger/exceptions/ExceptionsControllerTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM @Sarthak2601!
Please merge develop to this branch! |
Explanation
Fixes #1104
Fixes part of #1105
Checklist