Skip to content
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

RSDK-5953 - add newMachine wrapper #176

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

clintpurser
Copy link
Member

wrapping the newRobot call with newMachine.

@clintpurser clintpurser requested a review from njooma January 29, 2024 21:33
@clintpurser clintpurser requested a review from a team as a code owner January 29, 2024 21:33
@@ -164,4 +164,13 @@ class AppClient {
..userId = userId;
await _client.deleteOrganizationMember(request);
}

/// Create a new smart machine with the included [name] in the passed in [locationId]
Future<String> newMachine(String name, String locationId) async {
Copy link
Member Author

Choose a reason for hiding this comment

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

debated calling this newRobot to be more transparent with the underlying proto - but it seems like that would be changing soonish and would become a breaking change. Trying to mitigate the amount of those in the future. But I can also see the argument with staying consistent and doing a hard cutover in the future.

Copy link
Member

Choose a reason for hiding this comment

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

newMachine is good IMO

@@ -164,4 +164,13 @@ class AppClient {
..userId = userId;
await _client.deleteOrganizationMember(request);
}

/// Create a new smart machine with the included [name] in the passed in [locationId]
Future<String> newMachine(String name, String locationId) async {
Copy link
Member

Choose a reason for hiding this comment

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

newMachine is good IMO

@clintpurser clintpurser merged commit b3441d3 into viamrobotics:main Jan 29, 2024
2 checks passed
@clintpurser clintpurser deleted the new-machine branch January 29, 2024 22:01
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.

2 participants