pocket-casts-ios
pocket-casts-ios copied to clipboard
[Give Rating] Minimum played episode rate required
📘 Part of: #1879 |
---|
Fixes #1970
This PR add the logic that set the minimum played episode count required to allow the user to rate a podcast. The value could be 1 or 2 depending bby the number of episodes a podcast can have. If the podcast has only 1 episode, than the minimum value will be 1. If the podcast has more than 1 episode, than the minimum value is 2.
To test
[!NOTE] Have giveRatings feature flag enabled Please use Staging to test
- Find a podcast with more than 1 episodes you never listen to
- Open the rating view and confirm you can NOT rate it
- Play few episodes
- Re-open it and confirm you can rate it
- Find a podcast with 1 episode you never listen to. If you don't have one use https://anchor.fm/s/f68090c0/podcast/rss
- Open the rating view and confirm you can NOT rate it
- Play the episode
- Re-open it and confirm you can rate it
Checklist
- [ ] I have considered if this change warrants user-facing release notes and have added them to
CHANGELOG.md
if necessary. - [ ] I have considered adding unit tests for my changes.
- [ ] I have updated (or requested that someone edit) the spreadsheet to reflect any new or changed analytics.