Skip to content
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

[public-api] migrate ssh service #19110

Merged
merged 5 commits into from
Nov 23, 2023
Merged

[public-api] migrate ssh service #19110

merged 5 commits into from
Nov 23, 2023

Conversation

jeanp413
Copy link
Member

@jeanp413 jeanp413 commented Nov 22, 2023

Description

Summary generated by Copilot

🤖[deprecated] Generated by Copilot at f2cc974

This pull request refactors the dashboard and the public API to use the new SSH service and the SSHPublicKey protobuf class, instead of the deprecated server service and the UserSSHPublicKeyValue class. It also renames the id field of the DeleteSSHPublicKeyRequest message to ssh_key_id, and removes some unused files and imports.

Related Issue(s)

Fixes #

How to test

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

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

components/dashboard/src/data/setup.tsx Show resolved Hide resolved
components/server/src/api/ssh-service-api.ts Show resolved Hide resolved
}

async deleteSSHPublicKey(req: PartialMessage<DeleteSSHPublicKeyRequest>): Promise<DeleteSSHPublicKeyResponse> {
if (!req.sshKeyId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

JSON-RPC and gRPC validate is not aligned

Copy link
Member Author

Choose a reason for hiding this comment

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

I see that uuid check is not done in other json-rpc files, only in new api files

@mustard-mh
Copy link
Contributor

Build is failed, will take a look 💄 later today if you're not online. cc @jeanp413

@mustard-mh
Copy link
Contributor

Preview is ready, settings looks good.

But not sure about the last used field, as I SSH into workspace, but it's not updated (it's not about use-query cache because I try to clean site data in DevTools, it's not updated too)

image

@mustard-mh
Copy link
Contributor

If it's not related to this PR, then we just go rebase and merge it

@mustard-mh
Copy link
Contributor

mustard-mh commented Nov 22, 2023

Just checked with Gitpod Cloud, that we don't have last used display in settings. Ignore this if that's how we're going to achieve it

@roboquat roboquat merged commit c201a2d into main Nov 23, 2023
14 of 15 checks passed
@roboquat roboquat deleted the jp/hurt-parakeet branch November 23, 2023 05:12
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