Skip to content
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

Merged
merged 2 commits into from
Dec 7, 2023
Merged

Conversation

TobiGr
Copy link
Member

@TobiGr TobiGr commented Oct 14, 2023

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

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

Add tests for `FeedDAO.unlinkStreamsOlderThan(:offsetDateTime) `
Closes TeamNewPipe#10237
@TobiGr TobiGr added bug Issue is related to a bug feed Issue is related to the feed database Issue is related to database operations new stream notification Feature: notification shown for new videos labels Oct 14, 2023
@TobiGr TobiGr changed the title Fix notifiying about old "new" streams Fix notifying about old "new" streams Oct 14, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@Stypox Stypox left a 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!

Copy link

sonarcloud bot commented Nov 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Stypox Stypox merged commit 7cfd537 into TeamNewPipe:dev Dec 7, 2023
8 of 9 checks passed
@TobiGr TobiGr deleted the fix-new-streams branch December 29, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug database Issue is related to database operations feed Issue is related to the feed new stream notification Feature: notification shown for new videos
Projects
None yet
2 participants