From e967d35f2c0c47a3ea6e8b759ae89cbc09dad3f1 Mon Sep 17 00:00:00 2001 From: lberrymage Date: Fri, 16 Oct 2026 03:30:41 +0000 Subject: [PATCH] Delete the `UpdateUser` RPC We don't actually use this RPC in practice yet, so our future use cases may not even need the RPC to be in this shape. Remove it until we have a clear need for it. --- .../console/v1/update_user_request.proto | 37 ------------------- .../console/v1/update_user_response.proto | 13 ------- accrescent/console/v1/user_service.proto | 5 --- 3 files changed, 55 deletions(-) delete mode 100644 accrescent/console/v1/update_user_request.proto delete mode 100644 accrescent/console/v1/update_user_response.proto diff --git a/accrescent/console/v1/update_user_request.proto b/accrescent/console/v1/update_user_request.proto deleted file mode 100644 index 9d38ec0..0000000 --- a/accrescent/console/v1/update_user_request.proto +++ /dev/null @@ -1,37 +0,0 @@ -// SPDX-FileCopyrightText: © 2026 Logan Magee -// -// SPDX-License-Identifier: Apache-2.0 - -syntax = "proto3"; - -package accrescent.console.v1; - -import "accrescent/console/v1/user_role.proto"; -import "buf/validate/validate.proto"; -import "google/protobuf/field_mask.proto"; - -option java_multiple_files = true; -option java_package = "app.accrescent.console.v1"; - -// Request defining parameters for updating a user. -message UpdateUserRequest { - // The ID of the user to update. - optional string user_id = 1 [(buf.validate.field).required = true]; - - // The user's roles. - repeated UserRole roles = 2 [ - (buf.validate.field).repeated.items.enum = { - defined_only: true - not_in: [0] - }, - (buf.validate.field).repeated.unique = true - ]; - - // The list of fields to update. - // - // Required to enforce forward-compatible use by clients. - google.protobuf.FieldMask update_mask = 3 [ - (buf.validate.field).required = true, - (buf.validate.field).field_mask.in = "roles" - ]; -} diff --git a/accrescent/console/v1/update_user_response.proto b/accrescent/console/v1/update_user_response.proto deleted file mode 100644 index fb1ff69..0000000 --- a/accrescent/console/v1/update_user_response.proto +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-FileCopyrightText: © 2026 Logan Magee -// -// SPDX-License-Identifier: Apache-2.0 - -syntax = "proto3"; - -package accrescent.console.v1; - -option java_multiple_files = true; -option java_package = "app.accrescent.console.v1"; - -// Response to updating a user. -message UpdateUserResponse {} diff --git a/accrescent/console/v1/user_service.proto b/accrescent/console/v1/user_service.proto index 183476e..b79024e 100644 --- a/accrescent/console/v1/user_service.proto +++ b/accrescent/console/v1/user_service.proto @@ -8,8 +8,6 @@ package accrescent.console.v1; import "accrescent/console/v1/get_self_request.proto"; import "accrescent/console/v1/get_self_response.proto"; -import "accrescent/console/v1/update_user_request.proto"; -import "accrescent/console/v1/update_user_response.proto"; option java_multiple_files = true; option java_package = "app.accrescent.console.v1"; @@ -20,7 +18,4 @@ service UserService { rpc GetSelf(GetSelfRequest) returns (GetSelfResponse) { option idempotency_level = NO_SIDE_EFFECTS; } - - // Updates a user. - rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse) {} }