Skip to content

fix: prevent request badge showing when no related media #4100

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

OwsleyJr
Copy link
Collaborator

@OwsleyJr OwsleyJr commented Apr 6, 2025

Description

There is an underlying issue where some requests can lose their associated media relation. When this happens, the request would no longer appear in the requests list, but the badge count would still reflect it—leading to a mismatch between the count and the requests list.

This PR updates the logic so that only requests with a valid media relation (i.e., those that would actually appear in the requests list) are included in the badge count.

Screenshot (if UI-related)

N/A

To-Dos

  • Successful build yarn build

Copy link

cypress bot commented Apr 6, 2025

overseerr    Run #2663

Run Properties:  status check passed Passed #2663  •  git commit b29250da78: fix: prevent request badge showing when no related media
Project overseerr
Branch Review refs/pull/4100/merge
Run status status check passed Passed #2663
Run duration 02m 25s
Commit git commit b29250da78: fix: prevent request badge showing when no related media
Committer Brandon Cohen
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 28
View all changes introduced in this branch ↗︎

@sct sct merged commit 7954115 into develop Apr 7, 2025
8 checks passed
@sct sct deleted the fix/requests-count branch April 7, 2025 00:51
engels74 pushed a commit to engels74/overseerr-anime-source that referenced this pull request Apr 16, 2025
engels74 pushed a commit to engels74/overseerr-anime-source that referenced this pull request Apr 16, 2025
engels74 pushed a commit to engels74/overseerr-anime-source that referenced this pull request Apr 16, 2025
engels74 pushed a commit to engels74/overseerr-anime-source that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants