Repository navigation
Conversation
The replaced first post and its REPACK are the same release apart from the tag, so relevance tied them up to the copy count and the first post, listed longer by more indexers, led the picker struck through. After the relevance sort, a replacement that ranks below a release it replaces moves, with all its copies, to just above that release, whatever its copy count. Nothing else changes order.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Collaborator
Author
|
@codex review |
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A REPACK or PROPER now always ranks just above the release it replaces, whatever either one's copy count. Before, the first post of a release and its REPACK tied on every relevance criterion up to the copy count, so the first post (listed longer, by more indexers) led the picker even though the picker struck it through. Seen with two CiNEPHiLES releases: the plain one had 10 copies, the REPACK 5, and the struck-through plain one was #1.
Before: the struck 6-copy first post leads, its 2-copy REPACK is second, and the single-copy PROPER sits at the bottom (the single-copy demotion). After: each replacement sits right above the release it replaces; everything else keeps its place.
flowchart TD A[Relevance sort, copies tiebreak, odd-size demotion] --> B{Any REPACK or PROPER<br/>replacing a listed release?} B -->|no, most lists| Z[Order unchanged] B -->|yes| C[release_supersede.replacements:<br/>replaced row -> replacing row] C --> D{Replacement ranks below<br/>the release it replaces?} D -->|no| Z D -->|yes| E[Move all of the replacement's copies<br/>to just above the replaced release's first row] classDef step fill:#1E1E2E,color:#FFFFFF,stroke:#4A9EFF classDef keep fill:#34D399,color:#151520 classDef move fill:#FBBF24,color:#151520 class A,C step class Z keep class E moveChanges
filter._lift_replacementsruns after the relevance sort (only for sort order 0). It uses the same rule the picker uses to strike a row through (release_supersede): same group, same release in everything but the tag, a REPACK/PROPER the name certainly carries. Another group's REPACK, or an "unsure" tag, moves nothing.release_supersede.replacementsreturns the replacing row along with its tag;superseded_rowsis built on it, so striking and ranking can't disagree.Testing
just testpasses (5231 passed)just lintpassestests/test_filter_repack_rank.py(fewer copies, single copy, PROPER, another group's REPACK not lifted, better release stays above, already first, no REPACK untouched); four of them fail without the change.CHANGELOG.mdanddocs-site/(just docsbuilds)