pocket-casts-ios icon indicating copy to clipboard operation
pocket-casts-ios copied to clipboard

[Give Rating] Minimum played episode rate required

Open danielebogo opened this issue 7 months ago • 1 comments

📘 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

  1. Find a podcast with more than 1 episodes you never listen to
  2. Open the rating view and confirm you can NOT rate it
  3. Play few episodes
  4. Re-open it and confirm you can rate it
  5. Find a podcast with 1 episode you never listen to. If you don't have one use https://anchor.fm/s/f68090c0/podcast/rss
  6. Open the rating view and confirm you can NOT rate it
  7. Play the episode
  8. 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.

danielebogo avatar Jul 12 '24 15:07 danielebogo