-
Notifications
You must be signed in to change notification settings - Fork 178
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(api): skip command key hash generation only if command intent is SETUP #15020
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.
Good test.
I verified this works on the robot.
ODD and app steps now displaying commands as expected.
I made a copy of this to cut an alpha
#15022
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.
oh, great. in a followup we should make this always be present I think
@@ -28,7 +28,7 @@ def hash_protocol_command_params( | |||
The command hash, if the command is a protocol command. | |||
`None` if the command is a setup command. | |||
""" | |||
if create.intent != CommandIntent.PROTOCOL: | |||
if create.intent == CommandIntent.SETUP: |
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.
@sfoster1 this should check for FIXIT commands as well
@@ -28,7 +28,7 @@ def hash_protocol_command_params( | |||
The command hash, if the command is a protocol command. | |||
`None` if the command is a setup command. | |||
""" | |||
if create.intent != CommandIntent.PROTOCOL: | |||
if create.intent == CommandIntent.SETUP: |
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.
if create.intent == CommandIntent.SETUP: | |
if create.intent in [CommandIntent.SETUP, CommandIntent.FIXIT]: |
…SETUP (#15020) Fixes RQA-2640 # Overview In a previous PR we made a change from skipping hash generation if `CommandCreate.intent == CommandIntent.SETUP` to if `CommandCreate.intent != CommandIntent.PROTOCOL`. But a command can have a null intent when it is a protocol command; we only expect setup commands to have an explicit SETUP intent. So we were accidentally skipping key hash generation for python protocols, which was resulting in the app not being able to match run commands with their analysis counterparts. This PR fixes that and also adds an integration test so we don't accidentally break this functionality again. # Review requests - want to make sure that there wasn't an important reason for making the original change that I'm missing. But since all tests are still passing I'm guessing there wasn't any functional change that required a change in the original `if` statement. # Risk assessment Low. Bug fix.
Fixes RQA-2640
Overview
In a previous PR we made a change from skipping hash generation if
CommandCreate.intent == CommandIntent.SETUP
to ifCommandCreate.intent != CommandIntent.PROTOCOL
. But a command can have a null intent when it is a protocol command; we only expect setup commands to have an explicit SETUP intent. So we were accidentally skipping key hash generation for python protocols, which was resulting in the app not being able to match run commands with their analysis counterparts.This PR fixes that and also adds an integration test so we don't accidentally break this functionality again.
Review requests
if
statement.Risk assessment
Low. Bug fix.