Skip to content

Slight improvements on membership endpoints.#159

Merged
majst01 merged 3 commits into
mainfrom
member-improvements
Jul 16, 2026
Merged

Slight improvements on membership endpoints.#159
majst01 merged 3 commits into
mainfrom
member-improvements

Conversation

@Gerrit91

Copy link
Copy Markdown
Contributor

Description

During CLI implementation I thought some more information coming from the API would be great.

Used AI-Tools ✨

  • None used for generation

Comment on lines +331 to +345
message TenantServiceAddMemberRequest {
// Login of the tenant to which the member will be added
string login = 1 [(buf.validate.field).string.(metalstack.api.v2.is_tenant_login) = true];
// Login of the member to add
string member = 2 [(buf.validate.field).string.(metalstack.api.v2.is_tenant_login) = true];
// Role to assign to the new member
TenantRole role = 3 [(buf.validate.field).enum.defined_only = true];
}

// TenantServiceAddMemberResponse is the response payload for the add member request
message TenantServiceAddMemberResponse {
// TenantMember is the added tenant member
TenantMember tenant_member = 1;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we need this for normal users ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It would be easier when using IaC if owners can just add members without requiring invites.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK, but do we have use cases? I would prefer not to force us to implement more features right now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just wanted to implement the CRUD in the CLI but we can also skip this feature if you want.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like the additions in the admin endpoint, but would prefer if you create an issue for the later

@majst01
majst01 marked this pull request as ready for review July 16, 2026 11:21
@majst01
majst01 requested a review from a team as a code owner July 16, 2026 11:21
@majst01
majst01 merged commit fa350a0 into main Jul 16, 2026
10 checks passed
@majst01
majst01 deleted the member-improvements branch July 16, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants