-
Notifications
You must be signed in to change notification settings - Fork 179
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
refactor(robot-server): add PE commands to /sessions responses #8006
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -56,7 +56,7 @@ def add_command(self, request: CommandRequest) -> Command: | |||||||||
|
||||||||||
async def execute_command_by_id(self, command_id: str) -> Command: | ||||||||||
"""Execute a protocol engine command by its identifier.""" | ||||||||||
queued_command = self.state_view.commands.get_command_by_id(command_id) | ||||||||||
queued_command = self.state_view.commands.get(command_id) | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In usage,
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels much better to me. If we wanted to go even further, how would we feel about replacing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm anti-bracket-notation for this interface. Supporting bracket notation would bring in magic (methods) that just aren't needed and don't (IMO) meaningfully improve the DX of this class.
|
||||||||||
|
||||||||||
running_command = self._command_mapper.update_command( | ||||||||||
command=queued_command, | ||||||||||
|
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.
Very nice.