Skip to content

fix: allow targeted review batch imports#653

Open
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/targeted-review-import-coverage
Open

fix: allow targeted review batch imports#653
ApexWorm wants to merge 1 commit into
peteromallet:mainfrom
ApexWorm:fix/targeted-review-import-coverage

Conversation

@ApexWorm

Copy link
Copy Markdown

Problem

A review run intentionally limited with --dimensions completed its batches and merged valid results, but import failed because the trusted-import coverage gate treated every globally unassessed dimension as missing. This made targeted review batches require --allow-partial even when every requested dimension was present.

Fix

Apply the coverage gate only to dimensions in the immutable review packet. The regression tests prove unrelated global gaps are allowed while a missing requested dimension still fails.

Verification

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH="/tmp/desloppify-review-subset-fix" python3 -m pytest -q -p no:cacheprovider desloppify/tests/commands/review/test_review_batch_execution_helpers_direct.py

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