-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add default image get to PAPI and improve Dashboard #18767
Conversation
<Alert className="w-96 mt-4" type="warning"> | ||
A custom <span className="font-medium">default workspace image</span> is set for this organization. Contact | ||
an organization owner or specify a different image in <code>.gitpod.yml</code>. | ||
</Alert> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need to update this warning message since we can't identify if current workspace were started with org default workspace. See How to Test section Not part.
cc @gtsiolis @filiptronicek If you have good idea about it
Looking at this now! 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @mustard-mh. Left some comments below. Let me know what you think.
Co-authored-by: George Tsiolis <[email protected]>
@akosyakov Could you take a look at PublicAPI part? 🙏 |
workspaceId?: string; | ||
} | ||
|
||
export type DefaultImageSource = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do clients really need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API changes look good, i did not review rest and did not try
/hold
@gtsiolis Good if I unhold this PR? (ask because addressed feedbacks are not marked as resolved yet) |
@mustard-mh Yes, resolved any pending UX comments. Leaving this to you. 🏓 |
Description
This PR improved:
gp validate
andgp init
)Default Image
labeltag
👉 Warning on Start Workspace page
Summary generated by Copilot
🤖 Generated by Copilot at 00ee208
Added a new RPC and public API endpoint to get the default workspace image from different sources. Refactored the dashboard and protocol components to use strings instead of objects for the image props. Removed unused dummy fields and methods from the public API. Added mock and proxy implementations for testing and connecting the services.
Related Issue(s)
Fixes EXP-631, EXP-633
How to test
SHOULD - Dashboard
node:20-alpine3.17
gitpod/workspace-base
SHOULD - GP-CLI
Check
gp validate
andgp init
as #18723 's description, there should have no regression❌ NOT
It's marked as
NOT
since we have no way to identify which image current workspace is using now.It's marked as
NOT
since we have no way to identify which org image current workspace is using now.Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold