Skip to content

[gpctl] add users unblock command #19320

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 2 commits into from
Jan 12, 2024
Merged

[gpctl] add users unblock command #19320

merged 2 commits into from
Jan 12, 2024

Conversation

kylos101
Copy link
Contributor

Description

To help automate unblocking users

Related Issue(s)

Fixes n/a

How to test

Got a preview environment created with leeway run dev:preview.

Made myself an admin via leeway run components:make-user-admin

Got an access token, and ran the below tests from a workspace in the preview environment from this branch:

# stops the workspaces and blocks the user
go run . users block --token $TOKEN --address wss://kylos101-u73aa6162e2.preview.gitpod-dev.com/api/v1 f66c4875-42d9-4a51-955e-b80b788cdfcc
# cannot really test w/o another person
go run . users unblock --token $TOKEN --address wss://kylos101-u73aa6162e2.preview.gitpod-dev.com/api/v1 f66c4875-42d9-4a51-955e-b80b788cdfcc

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
  • /werft preemptible
    Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
  • 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

Ergonomically it is nice to block and unblock as separate commands

But we can consolidate logic to a single function
@roboquat roboquat merged commit 8ca78ea into main Jan 12, 2024
@roboquat roboquat deleted the kylos101/unblock-user branch January 12, 2024 20:57
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