Skip to content

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

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Add ListDevicesByUser protos #48993

merged 1 commit into from
Nov 14, 2024

Conversation

avatus
Copy link
Contributor

@avatus avatus commented Nov 14, 2024

These support the upcoming service to allow users to see a list of their own registered devices in the web UI account settings page.

@avatus avatus added the no-changelog Indicates that a PR does not require a changelog entry label Nov 14, 2024
@avatus avatus requested a review from codingllama November 14, 2024 17:38
Copy link
Contributor

@codingllama codingllama left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// 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.

Copy link
Contributor Author

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 {
Copy link
Contributor

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.
@avatus avatus added this pull request to the merge queue Nov 14, 2024
Merged via the queue into master with commit 195726d Nov 14, 2024
43 checks passed
@avatus avatus deleted the avatus/devices branch November 14, 2024 18:44
avatus added a commit that referenced this pull request Nov 21, 2024
These support the upcoming service to allow users to see a list of their
own registered devices in the web UI account settings page.
github-merge-queue bot pushed a commit that referenced this pull request Nov 21, 2024
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants