-
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
[papi] add watchWorkspace API #19010
Conversation
New and updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
68b9a2f
to
b9c02d9
Compare
ef17d55
to
145584c
Compare
|
||
message WatchWorkspaceStatusResponse { | ||
// workspace_id is the ID of the workspace that has status updated | ||
string workspace_id = 1; |
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 need workspace_id
since there's no workspace_id field in WorkspaceStatus
if (req.workspaceId && instance.workspaceId !== req.workspaceId) { | ||
continue; | ||
} | ||
const status = this.apiConverter.toWorkspace(instance).status; |
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.
to me to understand if here happens some exception what happens with 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.
pre approved since it is not really used
but please look at comments, for async generator adding extensive tests would be helpful, we should be careful with its lifecycle
Going to remove test commits and merge |
/unhold |
Description
Summary generated by Copilot
🤖 Generated by Copilot at 4ac219e
This pull request adds a new feature to the
WorkspaceService
service that allows clients to stream updates about the status of a workspace. It defines the newWatchWorkspace
RPC method and its message types in theworkspace.proto
file, and implements it in theserver
component using theconnect
andgrpc
libraries. It also adds support for the new method to the TypeScript client library. Additionally, it updates the@types/node
dependency to a compatible version.Related Issue(s)
Fixes #
How to test
With debug commit (hot-deployed) 50e7527
window.$testWatch
to watch statusdashboard_public_api_enabled
feature flag======dispose
in server✅ Test result share
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