-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add ListDevicesByUser protos #48993
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
Add ListDevicesByUser protos #48993
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.
Looks good! Thanks, Michael.
@@ -98,6 +98,9 @@ service DeviceTrustService { | |||
// ListDevices lists all registered devices. | |||
rpc ListDevices(ListDevicesRequest) returns (ListDevicesResponse); | |||
|
|||
// ListDevicesByUser lists all registered devices for the user. |
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.
// ListDevicesByUser lists all registered devices for the user. | |
// ListDevicesByUser lists all devices owned by the user |
Registered here largely relates to inventory management, so it's best to avoid the word. Technically we could say "devices enrolled by the user" but I think the suggestion is good enough.
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.
that makes total sense. I'll keep that in mind with future comments for the service too
// | ||
// Follows the pagination semantics of | ||
// https://cloud.google.com/apis/design/standard_methods#list. | ||
message ListDevicesByUserRequest { |
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.
nit: Move above ListDevicesByUserResponse, so the RPC pair is close together?
These support the upcoming service to allow users to see a list of their own registered devices in the web UI account settings page.
79495c4
to
57c50c8
Compare
These support the upcoming service to allow users to see a list of their own registered devices in the web UI account settings page.
* Add ListDevicesByUser protos (#48993) These support the upcoming service to allow users to see a list of their own registered devices in the web UI account settings page. * Remove DeviceView from ListDevicesByUser (#49209) Originally, we included the `View` field in order to add the Owner property to safeguard the returned details of a device ensure the owner matched the caller. However, this ended up not being conditionally used (we would never _not_ use it) so we can remove it from the request.
These support the upcoming service to allow users to see a list of their own registered devices in the web UI account settings page.