-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 notifying about old "new" streams #10494
Conversation
Add tests for `FeedDAO.unlinkStreamsOlderThan(:offsetDateTime) ` Closes TeamNewPipe#10237
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Thank you for creating a test!
app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Stypox <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What is it?
Description of the changes in your PR
After fetching new streams for the feed, "old" streams are removed from the database. However, if a channel contains only streams which are considered old, they are also removed. Thus they are shown as new when refreshing the feed the next time. For a more detailed explanation, read this comment in the original issue.
Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.
Due diligence