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

Fix #1104: Offline Exception Logging #1500

Merged
merged 34 commits into from
Aug 11, 2020
Merged

Conversation

Sarthak2601
Copy link
Contributor

Explanation

Fixes #1104
Fixes part of #1105

  • Adds the proto structure for exception logs
  • Adds exception controller for storing/uploading of exception logs on the basis of network connectivity.

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

Copy link
Contributor

@vinitamurthi vinitamurthi left a 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?

Copy link
Member

@BenHenning BenHenning left a 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.

@BenHenning BenHenning removed their assignment Jul 24, 2020
Copy link
Contributor

@vinitamurthi vinitamurthi left a 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!

@vinitamurthi vinitamurthi removed their assignment Jul 26, 2020
@vinitamurthi vinitamurthi removed their assignment Aug 5, 2020
Copy link
Member

@BenHenning BenHenning left a 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 {
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@BenHenning BenHenning removed their assignment Aug 11, 2020
Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM @Sarthak2601!

@BenHenning BenHenning removed their assignment Aug 11, 2020
@vinitamurthi
Copy link
Contributor

Please merge develop to this branch!

@Sarthak2601 Sarthak2601 merged commit 6807ca7 into develop Aug 11, 2020
@Sarthak2601 Sarthak2601 deleted the exception-log-offline branch August 11, 2020 10:16
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.

Offline Exception Logging [GSoC'20][Milestone 3]
3 participants