-
Notifications
You must be signed in to change notification settings - Fork 516
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
Fix: OOB - Handling of minor versions #1940
Fix: OOB - Handling of minor versions #1940
Conversation
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.
Needs to support OOB 1.0 and 1.1.
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: DESKTOP-TAED8OJ\shaangill025 <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
75151f2
to
ca8308f
Compare
@dbluhm FYI. For all. I suggested that to get this out faster we NOT send the "warning" problem reports -- e.g. responding with higher version of responding with lower version. Are we good with that, or since they are already done and commented out, should we support them. I'm a bit nervous of mobile agents getting problem reports they don't expect and splatting an error on the screen. |
I agree ... if this is going in a patch release we should minimize the change we are introducing. The full functionality can go into the next 1.0.0-rcx release |
@WadeBarnes -- looks like the SonarCloud config is processing test code again. Could you please take a look at that? Do we need to be concerned about the 4 relevant code smells? The complexity of the version checking code (I assume that is just the way it is) and the raising of the exceptions. All good with those? The unused variables in the test code and the commented out code are fine/intended, I'm sure. Thanks |
@classmethod | ||
def assign_version_to_message_type(cls, version: str): | ||
"""Assign version to Meta.message_type.""" | ||
cls.Meta.message_type = Template(cls.Meta.message_type).substitute( |
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.
Wouldn't this overwrite message_type for all the class instances going forward?
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.
To update message_type
in Meta, I found this can only be done in the classmethod before initialization. Regarding overwriting, $version
is only present in message_types
for OOB v1_0, so it will overwrite. But when we have a hardcoded version such as in other protocols then it won't overwrite.
Signed-off-by: Shaanjot Gill <[email protected]>
@WadeBarnes --- is there a way other than pushing another commit to trigger a re-execution of Circle/CI when things like this happen? I hadn't heard about the Circle/CI issues -- any update on that? Should we take the plunge here and switch to another tool? |
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Signed-off-by: Shaanjot Gill <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Signed-off-by: Shaanjot Gill [email protected]
handshake-reuse-accepted 1.1
forhandshake-reuse 1.1
andhandshake-reuse-accepted 1.0
forhandshake-reuse 1.0
.