refactor: move the loginError property from Connection into Login7Handler#1662
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1662 +/- ##
==========================================
+ Coverage 80.28% 80.37% +0.09%
==========================================
Files 90 90
Lines 4909 4908 -1
Branches 923 923
==========================================
+ Hits 3941 3945 +4
+ Misses 664 659 -5
Partials 304 304 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…n7TokenHandler` One less thing to keep track of on the `Connection` class itself. A fresh `Login7TokenHandler` is created for each login response message (including each iteration of the NTLM challenge loop), so scoping the error to the handler removes the need to reset it between login attempts. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
9c85630 to
779af1b
Compare
ReviewClean, well-scoped refactor. Summary of what I checked and found: OverviewMoves Correctness
Style/conventions
Test coverage
RiskLow risk. This is a mechanical, well-justified refactor that reduces cross-cutting mutable state on 🤖 Generated with Claude Code |
|
🎉 This PR is included in version 20.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This moves the
loginErrorproperty from theConnectionclass intoLogin7TokenHandler— one less piece of cross-cutting mutable state to keep track of onConnectionitself.Since a fresh
Login7TokenHandleris created for each login response message (including each iteration of the NTLM challenge loop), scoping the error to the handler is naturally correct and removes the need to resetloginErrorbetween login attempts: the threeperformSentLogin7With*methods now readhandler.loginErrordirectly, and theirfinally-block cleanup of the property goes away.This has been rebuilt on top of the current async connection establishment flow (#1661/#1663/#1665), replacing the original pre-refactor version of this change.
🤖 Generated with Claude Code