Skip to content

set default minVotes param in search segments to -Infinity#631

Merged
ajayyy merged 1 commit into
ajayyy:masterfrom
mini-bomba:fix/search-segment-min-votes
May 27, 2026
Merged

set default minVotes param in search segments to -Infinity#631
ajayyy merged 1 commit into
ajayyy:masterfrom
mini-bomba:fix/search-segment-min-votes

Conversation

@mini-bomba

Copy link
Copy Markdown
Contributor
  • I agree to license my contribution under AGPL-3.0-only with my contribution automatically being licensed under LGPL-3.0 additionally after 6 months

it would be very nice to assume our database would be consistent with the intended behaviour, but alas it is not, and it is still possible to double-downvote a segment if the server is sufficiently laggy.

the minVotes param defaulting to -3 was a source of confusion in VIPs multiple times already, where they thought a segment had completely disappeared from the db, but it was simply excluded from the results due to being below the default vote threshold to return. search segments is expected to return all submitted segments on a video if no parameters are set.

it would be very nice to assume our database would be consistent with
the intended behaviour, but alas it is not, and it is still possible to
double-downvote a segment if the server is sufficiently laggy.

the minVotes param defaulting to -3 was a source of confusion in VIPs
multiple times already, where they thought a segment had completely
disappeared from the db, but it was simply excluded from the results due
to being below the default vote threshold to return.
search segments is expected to return all submitted segments on a video
if no parameters are set.
@ajayyy
ajayyy merged commit f75db94 into ajayyy:master May 27, 2026
4 checks passed
@mini-bomba
mini-bomba deleted the fix/search-segment-min-votes branch May 27, 2026 17:27
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