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

[dashboard] Use SCM Service (gRPC) #19101

Merged
merged 3 commits into from
Nov 22, 2023
Merged

[dashboard] Use SCM Service (gRPC) #19101

merged 3 commits into from
Nov 22, 2023

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Nov 21, 2023

Description

Based on #19098

Summary generated by Copilot

🤖[deprecated] Generated by Copilot at b92b9a9

Refactored the dashboard and the server to use a new SCMService interface for SCM-related operations instead of the GitpodServer interface. Added Protobuf, gRPC, and Connect definitions and implementations for the SCMService interface. Removed unused or deprecated parameters and interfaces from the GitpodServer interface.

Related Issue(s)

Fixes #

How to test

⚠️ Test with FF disabled ⚠️

UIs affected by this PR, but we need to verify that they continue working as usual.

  • Git Integrations, as we're reading the scopes of the current token
  • New Workspace modal
  • New Project modal

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

@AlexTugarev AlexTugarev force-pushed the at/scm-service-dashboard branch from b92b9a9 to b154839 Compare November 21, 2023 14:11
@AlexTugarev AlexTugarev changed the base branch from main to at/scm-service November 21, 2023 14:24
@roboquat roboquat added size/L and removed size/XXL labels Nov 21, 2023
@mustard-mh mustard-mh requested a review from akosyakov November 21, 2023 14:46
@AlexTugarev AlexTugarev force-pushed the at/scm-service-dashboard branch 2 times, most recently from 5e7f233 to 4dfd63e Compare November 22, 2023 06:44
@AlexTugarev AlexTugarev force-pushed the at/scm-service-dashboard branch from 4dfd63e to 1641a05 Compare November 22, 2023 11:16
Base automatically changed from at/scm-service to main November 22, 2023 14:27
@roboquat roboquat added size/XXL and removed size/L labels Nov 22, 2023
@akosyakov
Copy link
Member

I'm going to test it now with FF disabled, i.e. JSON-RPC.

@akosyakov
Copy link
Member

akosyakov commented Nov 22, 2023

@AlexTugarev I added public_repo scope, but cannot remove it anymore.

Updated: i guess it is expected because I still have repo

@akosyakov
Copy link
Member

JSON-RPC works well, I'm going to test now with FF on.

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.

It works nicely in both cases with FF on and off.

But please make sure to invalidate react caches.

@AlexTugarev AlexTugarev force-pushed the at/scm-service-dashboard branch from e122c8d to 8fbf988 Compare November 22, 2023 16:03
@roboquat roboquat removed the size/XXL label Nov 22, 2023
@AlexTugarev
Copy link
Member Author

Thanks for testing @akosyakov!

'Bumped the cache version.

@AlexTugarev
Copy link
Member Author

/unhold

@roboquat roboquat merged commit 79666cd into main Nov 22, 2023
12 of 13 checks passed
@roboquat roboquat deleted the at/scm-service-dashboard branch November 22, 2023 16:26
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.

4 participants