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

Fixes #3095, #2824: Use protos with intent extras in RecentlyPlayedActivity #4511

Merged
merged 78 commits into from
Oct 5, 2022

Conversation

vrajdesai78
Copy link
Contributor

@vrajdesai78 vrajdesai78 commented Aug 19, 2022

Explanation

Fixes #3095
Fixes #2824

Added RecentlyPlayedActivityParams and DestinationScreen proto.

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

Video

recently_played.mp4

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

PTAL

@rt4914 rt4914 assigned vrajdesai78 and unassigned rt4914 Aug 19, 2022
@vrajdesai78 vrajdesai78 assigned rt4914 and unassigned vrajdesai78 Aug 19, 2022
@vrajdesai78 vrajdesai78 changed the title Fixes 3095: Use protos with intent extras in RecentlyPlayedActivity Fixes #3095: Use protos with intent extras in RecentlyPlayedActivity Aug 19, 2022
@BenHenning
Copy link
Sponsor Member

@vrajdesai78 I believe your Dagger error is coming from the fact that you're using @Binds instead of @Provides in ActivityRouterModule. Dagger doesn't know how to turn DestinationScreen into DestinationScreen.DestinationScreenCase, so it's throwing an error. I think you want to use @Provides here so that you can add code for converting between the two, or you'll want to change the types so that Dagger can correctly convert between the two types when generating the binding code.

@vrajdesai78
Copy link
Contributor Author

@vrajdesai78 I believe your Dagger error is coming from the fact that you're using @Binds instead of @Provides in ActivityRouterModule. Dagger doesn't know how to turn DestinationScreen into DestinationScreen.DestinationScreenCase, so it's throwing an error. I think you want to use @Provides here so that you can add code for converting between the two, or you'll want to change the types so that Dagger can correctly convert between the two types when generating the binding code.

Thanks @BenHenning, I have replaced @BINDS with @provides and now error is solved.

@vrajdesai78 vrajdesai78 self-assigned this Aug 19, 2022
@vrajdesai78 vrajdesai78 changed the title Fixes #3095: Use protos with intent extras in RecentlyPlayedActivity Fixes #3095 & #2824: Use protos with intent extras in RecentlyPlayedActivity Aug 19, 2022
@vrajdesai78 vrajdesai78 changed the title Fixes #3095 & #2824: Use protos with intent extras in RecentlyPlayedActivity Fixes #3095, #2824: Use protos with intent extras in RecentlyPlayedActivity Aug 19, 2022
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@vrajdesai78 In source activity i.e., HomeActivity or ProfileProgressActivity please add tests showing that intents are getting passed correctly for the RecentlyPlayedActivity

@rt4914 rt4914 removed their assignment Aug 19, 2022
Copy link
Sponsor 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 @vrajdesai78. Took another pass--PTAL.

@BenHenning BenHenning removed their assignment Oct 5, 2022
Copy link
Sponsor 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 @vrajdesai78. Just had 2 follow-up comments, and per chat CI is failing & needs to be fixed.

@BenHenning BenHenning removed their assignment Oct 5, 2022
@vrajdesai78
Copy link
Contributor Author

vrajdesai78 commented Oct 5, 2022

Thanks @vrajdesai78. Just had 2 follow-up comments, and per chat CI is failing & needs to be fixed.

Followed up on your comments and fixed failing CI checks. Still I didn't find a good name for tests in ProfileProgressFragmentTest which fits in character limit

Copy link
Sponsor 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 @vrajdesai78. Just had a couple of follow-ups--PTAL.

@BenHenning BenHenning removed their assignment Oct 5, 2022
vrajdesai78 and others added 3 commits October 5, 2022 11:37
…ProfileProgressFragmentTest.kt

Co-authored-by: Ben Henning <henning.benmax@gmail.com>
…rogress/ProfileProgressFragmentTest.kt"

This reverts commit 3c141fb.
Copy link
Sponsor 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.

@vrajdesai78 PTAL at follow-up comment.

@BenHenning BenHenning removed their assignment Oct 5, 2022
@vrajdesai78
Copy link
Contributor Author

@BenHenning, updated ActivityRouter based on your suggestion. Thanks

Copy link
Sponsor 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 @vrajdesai78. This LGTM.

@BenHenning BenHenning merged commit 162a50e into oppia:develop Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants