Skip to content

[GRPC] Organization API #18948

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
Oct 19, 2023
Merged

[GRPC] Organization API #18948

merged 1 commit into from
Oct 19, 2023

Conversation

svenefftinge
Copy link
Contributor

@svenefftinge svenefftinge commented Oct 18, 2023

Description

Defines and implements an organization API

Summary generated by Copilot

🤖 Generated by Copilot at 4bac2d4

This pull request introduces and uses the new public API for workspaces and organizations, which is based on the Connect protocol and the experimental v2 services. It refactors the dashboard and the gitpod-protocol components to use the public API types and clients, and updates the proxy and the test configuration accordingly. It also adds some helper functions and converters to facilitate the communication and conversion between the public API and the legacy JSON-RPC types.

Related Issue(s)

Fixes EXP-821

How to test

Documentation

Preview status

gitpod:summary

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@svenefftinge svenefftinge requested a review from a team as a code owner October 18, 2023 08:51
@svenefftinge svenefftinge changed the title Se/org-api [GRPC] Organization API Oct 18, 2023
@svenefftinge svenefftinge force-pushed the se/org-api branch 4 times, most recently from 3db0be3 to 8c41b80 Compare October 18, 2023 11:48
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

Preapproved, but errors should be fixed.

context: HandlerContext,
): Promise<CreateOrganizationResponse> {
const org = await this.orgService.createOrganization(context.user.id, req.name);
const response = new CreateOrganizationResponse();
Copy link
Member

Choose a reason for hiding this comment

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

Love the conciseness and single-purpose of this method 🧡 😄

@svenefftinge svenefftinge force-pushed the se/org-api branch 2 times, most recently from a6ce3dd to 56eb228 Compare October 19, 2023 07:37
@svenefftinge
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit c46f9bf into main Oct 19, 2023
@roboquat roboquat deleted the se/org-api branch October 19, 2023 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants