Skip to content

fix(search): zero configured indexers returned five fake mock releases into the real grab pipeline#756

Open
t3chnaztea wants to merge 1 commit into
Listenarrs:canaryfrom
t3chnaztea:fix/mock-results-in-grab-path
Open

fix(search): zero configured indexers returned five fake mock releases into the real grab pipeline#756
t3chnaztea wants to merge 1 commit into
Listenarrs:canaryfrom
t3chnaztea:fix/mock-results-in-grab-path

Conversation

@t3chnaztea

Copy link
Copy Markdown

The bug

With zero indexers configured/enabled, IndexerSearchWorkflow.SearchIndexersAsync logged a warning and then returned GenerateMockIndexerResults(query): five synthetic releases with fabricated titles, sizes, and URLs. Because this method also serves the automatic-search path, those fake releases flowed into real scoring and the grab decision, where one could be selected and handed to a download client.

The fix

Zero indexers now returns an empty result set with a clear warning ("No indexers configured or enabled; search returned no results"). Both GenerateMockIndexerResults overloads are deleted — a repo-wide search (backend, tests, fe/) found no other consumers, and no dev/debug flag gated them.

Tests

  • SearchIndexers_NoIndexersConfigured_ReturnsEmptyWithoutSyntheticResults

Full suite green: 1190 passed / 0 failed; dotnet format --verify-no-changes clean.

🤖 Generated with Claude Code

…s into the real grab pipeline

When no indexers were configured/enabled, SearchIndexersAsync returned
GenerateMockIndexerResults: five synthetic releases (fabricated titles,
sizes, and magnet/NZB URLs) that flowed into real scoring and the
automatic-grab decision and could be handed to a download client. Return
an empty result set with a clear warning instead, and remove the now-dead
GenerateMockIndexerResults helpers. Nothing in the frontend or tests
depended on them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@t3chnaztea
t3chnaztea requested a review from a team July 13, 2026 02:51
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.

1 participant