Skip to content

Fix notifying about old "new" streams#10494

Merged
Stypox merged 2 commits intoTeamNewPipe:devfrom
TobiGr:fix-new-streams
Dec 7, 2023
Merged

Fix notifying about old "new" streams#10494
Stypox merged 2 commits intoTeamNewPipe:devfrom
TobiGr:fix-new-streams

Conversation

@TobiGr
Copy link
Copy Markdown
Contributor

@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 and PRs related to database operations new stream notification Issue is related to notification shown for new streams labels Oct 14, 2023
@TobiGr TobiGr changed the title Fix notifiying about old "new" streams Fix notifying about old "new" streams Oct 14, 2023
@sonarqubecloud
Copy link
Copy Markdown

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
Copy Markdown
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!

Comment thread app/src/main/java/org/schabi/newpipe/database/feed/dao/FeedDAO.kt Outdated
@sonarqubecloud
Copy link
Copy Markdown

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
@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 and PRs related to database operations feed Issue is related to the feed new stream notification Issue is related to notification shown for new streams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications (get notified) for uploads from EXACTLY 3 month ago | Bug? Repeated duplicate notification for subscription

2 participants