UN-2932 [FIX] hitl rules check issue fix#1648
Conversation
Test ResultsSummary
Runner Tests - Full Report
SDK1 Tests - Full Report
|
|
Summary by CodeRabbit
WalkthroughChanges to the HITL (Human-in-the-Loop) decision flow in destination_connector.py now enable rule evaluation for all files, not just pre-selected ones. The Changes
Sequence DiagramsequenceDiagram
participant check as _check_and_handle_hitl
participant should as _should_handle_hitl
participant service as Manual Review Service
participant validate as validate_db_rule
check->>should: tool_execution_result, file_hash
activate should
rect rgb(240, 248, 255)
note over should: Check pre-selection status
should->>should: is_manualreview_required?
end
alt Pre-selected (old path)
should->>validate: use rule evaluation
else Not pre-selected (new path)
should->>should: wrap tool_execution_result
rect rgb(255, 250, 240)
note over should: Normalize result shape
end
should->>validate: use wrapped_result
end
validate->>service: rule evaluation
service-->>validate: rule outcome
validate-->>should: HITL decision
deactivate should
should-->>check: return bool
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to Reviews > Disable Cache setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (1)
workers/shared/workflow/destination_connector.py(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build



What
Why
How
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
Database Migrations
Env Config
Relevant Docs
Related Issues or PRs
Dependencies Versions
Notes on Testing
Screenshots
Checklist
I have read and understood the Contribution Guidelines.