Skip to content

Commit 8a1e0d0

Browse files
committed
Add configcat enabled in workspace info api
1 parent 5835bcc commit 8a1e0d0

File tree

3 files changed

+51
-35
lines changed

3 files changed

+51
-35
lines changed

components/supervisor-api/go/info.pb.go

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

components/supervisor-api/info.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ message WorkspaceInfoResponse {
9797

9898
// debug_workspace_type indicates whether it is a regular or prebuild debug workspace
9999
DebugWorkspaceType debug_workspace_type = 17;
100+
101+
// configcat_enabled controls whether configcat is enabled
102+
bool configcat_enabled = 18;
100103
}
101104

102105
enum DebugWorkspaceType {

components/supervisor/pkg/supervisor/services.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ func (is *InfoService) WorkspaceInfo(context.Context, *api.WorkspaceInfoRequest)
670670
WorkspaceClass: &api.WorkspaceInfoResponse_WorkspaceClass{Id: is.cfg.WorkspaceClass},
671671
OwnerId: is.cfg.OwnerId,
672672
DebugWorkspaceType: is.cfg.DebugWorkspaceType,
673+
ConfigcatEnabled: is.cfg.ConfigcatEnabled,
673674
}
674675
if is.cfg.WorkspaceClassInfo != nil {
675676
resp.WorkspaceClass.DisplayName = is.cfg.WorkspaceClassInfo.DisplayName

0 commit comments

Comments
 (0)