-
Notifications
You must be signed in to change notification settings - Fork 571
UN-2932 [FIX] hitl rules check issue fix #1648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
muhammad-ali-e
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.