Skip to content

PM-5609: Show infected status for failed virus scans - #2063

Merged
jmgasper merged 1 commit into
devfrom
PM-5609
Jul 30, 2026
Merged

PM-5609: Show infected status for failed virus scans#2063
jmgasper merged 1 commit into
devfrom
PM-5609

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken

Virus-scan failures appeared as Pending in the AI-only Approval table even though the expanded reviewer details showed the Virus Scan as failed.

Root cause

Infected submissions do not continue to AI decision creation, and the Approval status renderer defaulted every submission without a decision to Pending.

What was changed

Failed file-submission virus scans now take precedence over AI decision status and render as Infected using the existing failed-status styling. URL-only submissions remain exempt from virus-scan failure handling.

Any added/updated tests

Added a focused Approval table regression test covering an infected submission and preserving the normal Pending fallback.

Validation completed:

  • yarn test:no-watch --runTestsByPath src/apps/review/src/lib/components/ChallengeDetailsContent/TabContentAiApproval.spec.tsx — passed.
  • yarn test:no-watch --testPathPattern=src/apps/review — passed (35 suites, 134 tests).
  • yarn lint — passed.
  • yarn run build — passed with existing warnings.

The repository-wide yarn test:no-watch was also run. It retained 13 unrelated failing suites and 36 failing tests that were reproduced unchanged on a clean origin/dev worktree; all 35 Review app suites passed.

What was broken
Virus-scan failures appeared as Pending in the AI-only Approval table even though the expanded reviewer details showed the Virus Scan as failed.

Root cause
Infected submissions do not continue to AI decision creation, and the Approval status renderer defaulted every submission without a decision to Pending.

What was changed
Failed file-submission virus scans now take precedence over AI decision status and render as Infected using the existing failed-status styling.

Any added/updated tests
Added a focused Approval table regression test covering an infected submission and preserving the normal Pending fallback.
@jmgasper
jmgasper requested a review from kkartunov as a code owner July 30, 2026 04:18
@jmgasper
jmgasper merged commit 9288e3e into dev Jul 30, 2026
7 checks passed
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