Skip to content

Se/update-team-api #15714

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

Closed
wants to merge 1 commit into from
Closed

Se/update-team-api #15714

wants to merge 1 commit into from

Conversation

svenefftinge
Copy link
Member

@svenefftinge svenefftinge commented Jan 12, 2023

Description

Introduces an API endpoint to update a team (only name changes are allowed atm).

FWIW: I believe we should rewrite all of the team calls and directly talk to the DB, so we can eventually get rid of the websocket-connection to server. I think a poor man implementation of checking what operations a user can do would be easy and ok until we can use FGA.

Related Issue(s)

See #5067

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@@ -114,6 +118,68 @@ func (s *TeamService) ListTeams(ctx context.Context, req *connect.Request[v1.Lis
}), nil
}

func (s *TeamService) UpdateTeam(ctx context.Context, req *connect.Request[v1.UpdateTeamRequest]) (*connect.Response[v1.UpdateTeamResponse], error) {
Copy link
Member

Choose a reason for hiding this comment

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

Unit tests, please. So far the Public API has nearly 100% coverage and I'd like to keep it that way.

@roboquat roboquat added size/L and removed size/XL labels Jan 12, 2023
@svenefftinge svenefftinge deleted the se/update-team-api branch January 17, 2023 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants