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

[TB] allow to config launcher from Dashboard #20051

Merged
merged 5 commits into from
Jul 19, 2024
Merged

[TB] allow to config launcher from Dashboard #20051

merged 5 commits into from
Jul 19, 2024

Conversation

mustard-mh
Copy link
Contributor

@mustard-mh mustard-mh commented Jul 18, 2024

Description

Related Issue(s)

Fixes ENT-442

How to test

  • Disable FF enable_experimental_jbtb everything should work like before
  • Try enable FF

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

out: java/src/main/java
- plugin: buf.build/protocolbuffers/java
# https://buf.build/protocolbuffers/java?version=v27.2
- plugin: buf.build/protocolbuffers/java:v27.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pin java plugin's version in case it updates java protobuf version and make lib usages incompatible

@roboquat roboquat added size/XL and removed size/L labels Jul 18, 2024
@mustard-mh mustard-mh changed the title Tb/dashboard [TB] allow to config launcher from Dashboard Jul 18, 2024
@mustard-mh mustard-mh changed the title [TB] allow to config launcher from Dashboard [tb] allow to config launcher from Dashboard Jul 18, 2024
@mustard-mh mustard-mh changed the title [tb] allow to config launcher from Dashboard [TB] allow to config launcher from Dashboard Jul 18, 2024
@mustard-mh mustard-mh marked this pull request as ready for review July 19, 2024 05:50
@mustard-mh mustard-mh requested review from a team as code owners July 19, 2024 05:50
@@ -98,6 +99,7 @@ func main() {
// supervisor refer see https://github.com/gitpod-io/gitpod/blob/main/components/supervisor/pkg/supervisor/supervisor.go#L961
shouldWaitBackendPlugin := os.Getenv("GITPOD_WAIT_IDE_BACKEND") == "true"
debugEnabled := os.Getenv("SUPERVISOR_DEBUG_ENABLE") == "true"
preferToolbox := os.Getenv("GITPOD_PREFER_TOOLBOX") == "true"
Copy link
Contributor Author

@mustard-mh mustard-mh Jul 19, 2024

Choose a reason for hiding this comment

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

We have to use env so that we don't need to rebuild all versions of all JetBrains IDEs (args to start launcher are written inside image)

"phpstorm"
],
"installationSteps": [
"If you don't see an open dialog in your browser, make sure you have the \u003ca target='_blank' class='gp-link' href='https://www.gitpod.io/docs/ides-and-editors/jetbrains-gateway#getting-started-jetbrains-gateway'\u003eJetBrains Toolbox with Gitpod Plugin\u003c/a\u003e installed on your machine, and then click \u003cb\u003e${OPEN_LINK_LABEL}\u003c/b\u003e below."
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Draft changes, will update in the future

@roboquat roboquat added size/XL and removed size/L labels Jul 19, 2024
Copy link
Member

@filiptronicek filiptronicek left a comment

Choose a reason for hiding this comment

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

Looks good, toggling the ff off makes the button disappear from the dashboard.

@@ -25,18 +27,21 @@ export default function SelectIDE(props: SelectIDEProps) {

const [defaultIde, setDefaultIde] = useState<string>(user?.editorSettings?.name || "code");
const [useLatestVersion, setUseLatestVersion] = useState<boolean>(user?.editorSettings?.version === "latest");
const [preferToolbox, setPreferToolbox] = useState<boolean>(user?.editorSettings?.preferToolbox || false);
Copy link
Member

Choose a reason for hiding this comment

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

nit: we can only default on undefined

Suggested change
const [preferToolbox, setPreferToolbox] = useState<boolean>(user?.editorSettings?.preferToolbox || false);
const [preferToolbox, setPreferToolbox] = useState<boolean>(user?.editorSettings?.preferToolbox ?? false);

@@ -46,9 +51,10 @@ export default function SelectIDE(props: SelectIDEProps) {
additionalData: {
workspaceAutostartOptions,
ideSettings: {
settingVersion: "2.0",
settingVersion: IDESettingsVersion,
Copy link
Member

Choose a reason for hiding this comment

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

nice!

@mustard-mh
Copy link
Contributor Author

Thank you @filiptronicek

@mustard-mh
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit 8192444 into main Jul 19, 2024
19 checks passed
@roboquat roboquat deleted the tb/dashboard branch July 19, 2024 13: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