Skip to content

[server] Cleanup adminBlockUser RPC #17033

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 5 commits into from
Mar 27, 2023
Merged

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Mar 25, 2023

Description

Cleans up blocking users rpc, which makes it easier to introduce it on the gRPC API in api/user.ts see #16999 for details if needed.

  • Moves stopping of workspaces to workspace starter (it already has the stop method there)

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /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

@easyCZ easyCZ requested a review from a team March 25, 2023 20:42
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Mar 25, 2023
} catch (error) {
throw new ResponseError(ErrorCodes.NOT_FOUND, "not found");
}
const targetUser = await this.userService.blockUser(req.id, req.blocked);
Copy link
Member Author

Choose a reason for hiding this comment

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

No need to wrap in try, as we throw an API ResponseError from the userService.blockUser call already.

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-mp-server-cleanup-admin-block.5 because the annotations in the pull request description changed
(with .werft/ from main)

@geropl
Copy link
Member

geropl commented Mar 27, 2023

Code LGTM, but would like to test as well.

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Tested and works ✔️

@roboquat roboquat merged commit b8cfffd into main Mar 27, 2023
@roboquat roboquat deleted the mp/server-cleanup-admin-block branch March 27, 2023 10:16
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/M team: webapp Issue belongs to the WebApp team
Projects
Status: In Validation
Development

Successfully merging this pull request may close these issues.

3 participants