Skip to content

APP-4023: Add wrapper for RobotService.restartModule #334

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

Merged

Conversation

michaellee1019
Copy link
Member

No description provided.

@michaellee1019 michaellee1019 changed the title Add wrapper for RobotService.restartModule APP-4023: Add wrapper for RobotService.restartModule Aug 5, 2024
@michaellee1019 michaellee1019 marked this pull request as ready for review August 5, 2024 17:33
@michaellee1019 michaellee1019 requested a review from a team as a code owner August 5, 2024 17:33
proto.RestartModuleRequest,
proto.RestartModuleResponse
>(robotService.restartModule.bind(robotService), request);
return response.toObject();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need to actually return anything since the return type doesn't include any data

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah makes sense. If we add fields to the response in the future, then we can return it.

@michaellee1019 michaellee1019 requested a review from njooma August 5, 2024 18:45
Copy link
Member

@stuqdog stuqdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a stub for the restartModule method to robot/robot.ts with a docstring that explains the method a bit (what it does, if/when it raises, behavior when neither param is provided, stuff like that)?

@michaellee1019
Copy link
Member Author

Can we add a stub for the restartModule method to robot/robot.ts

Ah, didn't realize this existed. Will do!

@michaellee1019 michaellee1019 requested a review from stuqdog August 6, 2024 17:32
@michaellee1019 michaellee1019 merged commit 46805d1 into viamrobotics:main Aug 7, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants