Skip to content

Commit 68b9a2f

Browse files
committed
feedback
1 parent 8a36f16 commit 68b9a2f

File tree

10 files changed

+318
-307
lines changed

10 files changed

+318
-307
lines changed

components/dashboard/src/service/public-api.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export const oidcService = createPromiseClient(OIDCService, transport);
4545
export const workspaceClient = createServiceClient(WorkspaceService, new JsonRpcWorkspaceClient());
4646
export const organizationClient = createServiceClient(OrganizationService, new JsonRpcOrganizationClient());
4747

48+
// @ts-ignore
49+
window.$localTest = workspaceClient;
50+
4851
export function publicApiTeamToProtocol(team: Team): ProtocolTeam {
4952
return {
5053
id: team.id,

components/gitpod-protocol/src/generate-async-generator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export async function* generateAsyncGenerator<T>(
5353
});
5454
}
5555
}
56-
} catch (e) {
56+
// ignore error since code in `try` scope will not throw an error
57+
// unless caller use it.throw, then it will throw to itself
5758
} finally {
5859
cleanup();
5960
}

components/public-api/gitpod/experimental/v2/workspace.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ service WorkspaceService {
1313
// ID +return NOT_FOUND Workspace does not exist
1414
rpc GetWorkspace(GetWorkspaceRequest) returns (GetWorkspaceResponse) {}
1515

16-
// WatchWorkspace watchs the workspace status changes
16+
// WatchWorkspaceStatus watchs the workspaces status changes
1717
//
1818
// ID +return NOT_FOUND Workspace does not exist
19-
rpc WatchWorkspace(WatchWorkspaceRequest) returns (stream WatchWorkspaceResponse) {}
19+
rpc WatchWorkspaceStatus(WatchWorkspaceStatusRequest) returns (stream WatchWorkspaceStatusResponse) {}
2020
}
2121

2222
message GetWorkspaceRequest { string id = 1; }
2323

2424
message GetWorkspaceResponse { Workspace item = 1; }
2525

26-
message WatchWorkspaceRequest {
27-
// id specifies the workspace to watch
26+
message WatchWorkspaceStatusRequest {
27+
// workspace_id specifies the workspace to watch
2828
//
2929
// +optional if empty then watch all workspaces
30-
optional string id = 1;
30+
optional string workspace_id = 1;
3131
}
3232

33-
message WatchWorkspaceResponse {
33+
message WatchWorkspaceStatusResponse {
3434
// item is the workspace that was changed
35-
Workspace item = 1;
35+
Workspace workspace = 1;
3636
}
3737

3838
// +resource get workspace

components/public-api/go/experimental/v2/v2connect/workspace.connect.go

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)