refactor(mcp): use serialize_user_object in get_instance_info#38613
Conversation
Replace inline role-extraction logic with the shared serialize_user_object helper, reducing duplication.
Code Review Agent Run #9959e4Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #38613 +/- ##
==========================================
- Coverage 65.01% 64.40% -0.62%
==========================================
Files 1817 2529 +712
Lines 72318 128945 +56627
Branches 23032 29718 +6686
==========================================
+ Hits 47016 83042 +36026
- Misses 25302 44458 +19156
- Partials 0 1445 +1445
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rebenitez1802
left a comment
There was a problem hiding this comment.
Thanks for the refactor LGTM
SUMMARY
Follow-up to #38612 per review comment from @rebenitez1802.
Replaces the inline role-extraction logic in
get_instance_infowith the sharedserialize_user_object()helper introduced in #38612, reducing code duplication.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A - refactor only, no behavior change
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION