-
Notifications
You must be signed in to change notification settings - Fork 521
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
Rename OngoingStory to PromotedStory #2546
Comments
May I work on this? |
As a note, when it comes time I'd recommend waiting until after #2320 is merged to merge this since this follows-up on some changes from that earlier PR. |
Okay. |
@FareesHussain @jcqli Till then can I look for any other issue? |
Sure |
@jcqli please update the title as |
@priyanka0906 since #2320 is merged, this is unblocked and you can work on this. |
@jcqli all instances of ongoingStory has to be changed in promotedStory like ongoingStoryClickListener and ongoingListAdapter? |
Yes, for clarity and consistency that would be best. |
okay. Thankyou |
May I work on this |
@Rohit1173 Assigning this to you. |
Can you please assign this to me? Thanks. |
Assigned this to @xpandeyed. |
Removing it from good-first-issue because it actually requires a lot of context about the project to rename things correctly. |
## Explanation Fixes #2546 Rename instances of ../recentlyplayed/OngoingStory to PromotedStory. - [x] ongoingStoryListSummaryResultLiveData => promotedStoryListSummaryResultLiveData - [x] fun subscribeToOngoingStoryList => fun subscribeToPromotedStoryList in RecentlyPlayedFragmentPresenter - [x] fun subscribeToOngoingStoryList => fun subscribeToPromotedStoryList in RecentlyPlayedFragment - [x] class name OngoingStoryViewModel => PromotedStoryViewModel - [x] class name OngoingListAdapter => PromotedStoryListAdapter - [x] private class OngoingStoryViewHolder => PromotedStoryViewHolder - [x] 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 - [x] 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: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). Co-authored-by: Ben Henning <[email protected]>
Since changing promoted stories to include recently played stories, older played stories, and suggest stories, we want to rename instances of
OngoingStory
to be calledPromotedStory
as per this review.In
RecentlyPlayedFragmentPresenter
:ongoingStoryListSummaryResultLiveData
=>promotedStoryListSummaryResultLiveData
fun subscribeToOngoingStoryList
=>fun subscribeToPromotedStoryList
In
OngoingStoryViewModel
:OngoingStoryViewModel
=>PromotedStoryViewModel
(and also it's usages elsewhere)The text was updated successfully, but these errors were encountered: