-
Notifications
You must be signed in to change notification settings - Fork 79
[APP-3685] feat: add rpc to rename API keys #489
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
Conversation
proto/viam/app/v1/app.proto
Outdated
} | ||
|
||
message RenameKeyResponse { | ||
string token_name = 1; |
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.
what is this? I would expect an empty response.
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.
you can blame me! i told him above to parrot it back in case we did any stripping of special characters etc and the name was slightly different than whatever was request. if you hate it though, i dont feel strongly so fine to remove.
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.
I agreed that it was a good sanity check. Though I didn't think about whether it would conform to the expected behavior of the related rpcs.
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.
Do our other Key api calls change the key "name" if it is invalid?
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.
Whoops, will try to un-stall this PR. @mattjperez, please ignore this noise and focus on your new team! :)
@stevebriskin:
CreateKeyResponse
above:
message CreateKeyResponse {
string key = 1;
string id = 2;
}
i.e. we echo back the provided name and send the newly generated ID.
What if I updated these new RPCs to match a bit better:
message RenameKeyRequest {
string id = 1;
string name = 2;
}
message RenameKeyResponse {
string name = 1;
}
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.
👍
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.
Changing RenameKeyResponse
to be:
message RenameKeyResponse {
string id = 1;
string name = 2;
}
after in person 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.
lgtm!
to catch the changes from main that I was missing to hopefully fix the conflicts in generated files 👍 |
Waiting on Julia's PR that fixes the checks on this repo. |
APP-3685: support renaming in API keys list (backend)
Additional rpc and structs needed for
app
PR, viamrobotics/app/#4520Changes:
app.proto
: