-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Tags IA] Fetch posts for multiple tags #20684
Conversation
This breaks the top bar filter behavior of the tags feed for now, since that requires the SubFilterViewModel to be properly initialized and communicate with the TopBar (via ReaderViewModel), which happens ONLY inside the ReaderPostListFragment for now.
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/tags-ia #20684 +/- ##
===================================================
+ Coverage 40.33% 40.39% +0.06%
===================================================
Files 1474 1479 +5
Lines 67878 67950 +72
Branches 11225 11232 +7
===================================================
+ Hits 27377 27451 +74
+ Misses 38034 38024 -10
- Partials 2467 2475 +8 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR and all the nice improvements in the Reader logic, @thomashorta ! 💯
I've left a few comments (mostly nitpicks) and before approving I just wanted to better understand how the ReaderPostLocalSource
class works. We can quickly chat when you're available.
WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderTagsFeedFragment.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderTagsFeedFragment.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderTagsFeedFragment.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/reader/repository/ReaderPostRepository.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/reader/services/post/ReaderPostLogicFactory.kt
Outdated
Show resolved
Hide resolved
...ss/src/test/java/org/wordpress/android/ui/reader/services/post/ReaderPostLogicFactoryTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! LGTM
Quality Gate passedIssues Measures |
Fixes #20588
Move shared fetching logic to Repository and create ViewModel to use Repository to fetch posts for tags directly.
To Test:
reader_tags_feed
feature flag in Debug SettingsTags
feedRegression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR Submission Checklist:
RELEASE-NOTES.txt
if necessary.Testing Checklist (strike-out the not-applying and unnecessary ones):
N/A, the UI in this PR is completely throwaway and only there to easily test these changes.