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

[toolbox] Add workspace actions #486

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Sep 23, 2024

You can now start, stop, and update workspaces. Since you can start workspaces yourself now, I marked non-ready states as unreachable, which prevents JetBrains from overriding with their own text ("disconnected" and "connected"). So now you will be able to see "stopped", "starting", and so on, which is nice. For the ready states you will still see "disconnected" or "connected" unfortunately. Ideally this would be displayed separately from the workspace state. This also means you have two clicks instead of one to connect to a workspace, but I felt like it was worth the tradeoff to (mostly) see the actual workspace state, and it does match the current Gateway flow. If we can separate the states visually then we can bring back the one-click behavior.

Weirdly, you can still press connect when environments are unreachable, but this will not actually work. It does not actually even attempt to connect, because if it did the workspace would start via the cli, so it seems to just be a no-op. Not sure what the idea here is, we may have to consult JetBrains.

Stacked on #487, for the CI fixes.

Closes #485

@code-asher code-asher force-pushed the asher/toolbox-dev/workspace-actions branch 2 times, most recently from 11700bd to 73f9e72 Compare September 23, 2024 23:30
@code-asher code-asher changed the base branch from asher/toolbox to asher/toolbox-dev/ci September 24, 2024 00:08
@code-asher code-asher force-pushed the asher/toolbox-dev/workspace-actions branch from 73f9e72 to 36d871a Compare September 24, 2024 00:11
Copy link
Contributor

github-actions bot commented Sep 24, 2024

Qodana Community for JVM

16 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 11
Class member can have 'private' visibility ◽️ Notice 3
String concatenation that can be converted to string template ◽️ Notice 1
Function or property has platform type ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2023.3.2
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

Base automatically changed from asher/toolbox-dev/ci to asher/toolbox September 24, 2024 21:04
You can now start, stop, and update workspaces.  Since you can start
workspaces yourself now, I marked non-ready states as unreachable, which
prevents JetBrains from overriding with their own text ("disconnected"
and "connected").  So now you will be able to see "stopped", "starting",
and so on.  For the ready states you will still see "disconnected" or
"connected" unfortunately.  Ideally this would be a completely separate
state displayed next to the workspace state.
@code-asher code-asher force-pushed the asher/toolbox-dev/workspace-actions branch from 36d871a to 5e52f91 Compare September 24, 2024 21:06
@code-asher code-asher merged commit 547fdea into asher/toolbox Sep 24, 2024
6 checks passed
@code-asher code-asher deleted the asher/toolbox-dev/workspace-actions branch September 24, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants