-
Notifications
You must be signed in to change notification settings - Fork 3
Update 2.7.5 -->2.8.0 #28
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
Update 2.7.5 -->2.8.0 #28
Conversation
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Preview for PR #28 |
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.
Pull Request Overview
This PR updates the version compatibility logic in the client connection code to support version 2.8.0 of the API, adding more granular version checking that includes the fourth version component (build number).
Key Changes:
- Updated the version check to distinguish between versions 2.7.5 and 2.8.0 using build number thresholds
- Added additional version checking logic for version 2.7.4 variants based on build numbers
- Updated command version assignment based on more precise version criteria
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| temp = version[2] + version[1] * 1000 + version[0] * 1000000 | ||
| if temp >= 2007005: | ||
| ## version after 2.7.5 | ||
| if (temp >= 2007005 and version[3] < 11274) or temp >= 2008000: |
Copilot
AI
Oct 16, 2025
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.
The magic number 11274 lacks explanation. Add a comment explaining why this specific build number is the threshold for version 2.7.5, or define it as a named constant for clarity.
| elif temp >= 2007004: | ||
| ## version after 2.7.4 | ||
| self.commandVersion = 13 | ||
| if version[3] < 10590: |
Copilot
AI
Oct 16, 2025
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.
The magic number 10590 lacks explanation. Add a comment explaining why this specific build number is the threshold for version 2.7.4, or define it as a named constant for clarity.
CSSFrancis
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!
Changed version