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 #2546: Rename OngoingStory to PromotedStory #4704

Merged
merged 21 commits into from
Nov 21, 2022

Conversation

adhiamboperes
Copy link
Collaborator

@adhiamboperes adhiamboperes commented Nov 9, 2022

Explanation

Fixes #2546

Rename instances of ../recentlyplayed/OngoingStory to PromotedStory.

  • ongoingStoryListSummaryResultLiveData => promotedStoryListSummaryResultLiveData
  • fun subscribeToOngoingStoryList => fun subscribeToPromotedStoryList in RecentlyPlayedFragmentPresenter
  • fun subscribeToOngoingStoryList => fun subscribeToPromotedStoryList in RecentlyPlayedFragment
  • class name OngoingStoryViewModel => PromotedStoryViewModel
  • class name OngoingListAdapter => PromotedStoryListAdapter
  • private class OngoingStoryViewHolder => PromotedStoryViewHolder
  • interface name OngoingStoryClickListener => PromotedStoryClickListener

Note: ongoing_story_card is used to show stories in the "recently played screen", under "Played within the last week and recommended stories", shown when a user clicks "View all promoted stories" from the home screen. I have renamed it to recently_played_story_card.xml.

promoted_story_card.xml is the layout file used to show promoted stories on the home page.

I removed PromotedStoryClickListener, PromotedStoryListAdapter and PromotedStoryViewModel from Kdoc excemption since the kdocs have been added.

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).

Renamed to PromotedStoryViewModel alongside usages
Rename to promotedStoryListSummaryResultLiveData
Rename to subscribeToPromotedStoryList
Rename to PromotedStoryListAdapter
The activity previously passed into the adapter constructor had no usages.
Rename to PromotedStoryClickListener
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 @adhiamboperes just had a few comments.

Regarding the layouts, when is ongoing_story_card vs. promoted_story_card used? It'd be nice to fix this last case, too, if it's the only other occurrence of "ongoing story" left.

Also removed the kdoc exemptions for the same
Note: This is the layout file used to show stories in the "recently played screen", under "Played within the last week and recommended stories"
Copy link
Collaborator Author

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

Thanks @adhiamboperes just had a few comments.

Regarding the layouts, when is ongoing_story_card vs. promoted_story_card used? It'd be nice to fix this last case, too, if it's the only other occurrence of "ongoing story" left.

Note: ongoing_story_card is used to show stories in the "recently played screen", under "Played within the last week and recommended stories", shown when a user clicks "View all promoted stories" from the home screen. I have renamed it to recently_played_story_card.xml.

promoted_story_card.xml is the layout file used to show promoted stories on the home page.

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 @adhiamboperes! I think the content for the new docs is generally good, but there are a few formatting issues to address for consistency and per the style guide. PTAL.

Copy link
Collaborator Author

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

I have implemented the KDoc formatting suggestions, PTAL @BenHenning

@adhiamboperes adhiamboperes removed their assignment Nov 16, 2022
@adhiamboperes
Copy link
Collaborator Author

@BenHenning I'm not sure why the workflows did not run. Could you PTAL?

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 @adhiamboperes! PR LGTM.

@oppiabot
Copy link

oppiabot bot commented Nov 17, 2022

Unassigning @BenHenning since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Nov 17, 2022

Assigning @rt4914 for code owner reviews. Thanks!

@BenHenning
Copy link
Sponsor Member

@adhiamboperes they sometimes hang, though it's a bit rare. I'll update the PR to the latest develop since it needs it, anyway, and that should retrigger a run.

@rt4914 PTAL for codeowners.

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.

@adhiamboperes Suggested minor changes. Thanks.

@rt4914 rt4914 assigned adhiamboperes and unassigned rt4914 Nov 18, 2022
Change the id name of ongoing_story_card_view to promoted_story_card_view in recently_played_story_card.xml.
Also renamed clickOnOngoingStoryTile to clickOnPromotedStoryTile in PromotedStoryViewModel.
Copy link
Collaborator Author

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

@rt4914, PTAL again.

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.

LGTM

@rt4914 rt4914 assigned adhiamboperes and unassigned rt4914 Nov 21, 2022
@oppiabot oppiabot bot added the PR: LGTM label Nov 21, 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.

Latest changes LGTM, thanks @adhiamboperes!

@BenHenning BenHenning enabled auto-merge (squash) November 21, 2022 14:58
@oppiabot
Copy link

oppiabot bot commented Nov 21, 2022

Unassigning @BenHenning since they have already approved the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename OngoingStory to PromotedStory
3 participants