Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add workspace_apps configuration to control apps in workspace table#18922

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
blink-so wants to merge9 commits intomainfromfeat/configurable-display-app-icons
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
9 commits
Select commitHold shift + click to select a range
550c22d
feat: update workspace button text to show 'Open VS Code in Browser'
blink-so[bot]Jul 19, 2025
e8de998
feat: add workspace_apps configuration to control apps shown in works…
blink-so[bot]Jul 19, 2025
c74817b
fix: regenerate proto files with workspace_apps field
blink-so[bot]Jul 19, 2025
7b9597b
feat: add backend support for workspace_apps
blink-so[bot]Jul 19, 2025
eb77a5e
feat: implement workspace_apps feature
blink-so[bot]Jul 19, 2025
f6d8727
fix: add WorkspaceApps field to InsertWorkspaceAgentParams
blink-so[bot]Jul 19, 2025
c39b8b2
fix: correct parameter names for getVSCodeHref and getTerminalHref fu…
blink-so[bot]Jul 19, 2025
92b942c
fix: replace any type with proper type assertion for workspace_apps
blink-so[bot]Jul 19, 2025
792fa68
fix: update database schema dump to include workspace_apps column
blink-so[bot]Jul 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletionscoderd/database/dump.sql
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

2 changes: 2 additions & 0 deletionscoderd/database/migrations/000350_workspace_apps.down.sql
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
-- Remove workspace_apps column from workspace_agents table
ALTER TABLE workspace_agents DROP COLUMN workspace_apps;
4 changes: 4 additions & 0 deletionscoderd/database/migrations/000350_workspace_apps.up.sql
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
-- Add workspace_apps column to workspace_agents table
ALTER TABLE workspace_agents ADD COLUMN workspace_apps text[] DEFAULT NULL;

COMMENT ON COLUMN workspace_agents.workspace_apps IS 'List of app IDs to display in the workspace table, configured via terraform';
5 changes: 3 additions & 2 deletionscoderd/database/models.go
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

1 change: 1 addition & 0 deletionscoderd/database/queries.sql.go
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

3 changes: 2 additions & 1 deletioncoderd/database/queries/workspaceagents.sql
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -58,11 +58,12 @@ INSERT INTO
troubleshooting_url,
motd_file,
display_apps,
workspace_apps,
display_order,
api_key_scope
)
VALUES
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING *;
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING *;

-- name: UpdateWorkspaceAgentConnectionByID :exec
UPDATE
Expand Down
1 change: 1 addition & 0 deletionscoderd/provisionerdserver/provisionerdserver.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2428,6 +2428,7 @@ func InsertWorkspaceResource(ctx context.Context, db database.Store, jobID uuid.
TroubleshootingURL: prAgent.GetTroubleshootingUrl(),
MOTDFile: prAgent.GetMotdFile(),
DisplayApps: convertDisplayApps(prAgent.GetDisplayApps()),
WorkspaceApps: prAgent.GetWorkspaceApps(),
InstanceMetadata: pqtype.NullRawMessage{},
ResourceMetadata: pqtype.NullRawMessage{},
// #nosec G115 - Order represents a display order value that's always small and fits in int32
Expand Down
1 change: 1 addition & 0 deletionscodersdk/workspaceagents.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -169,6 +169,7 @@ type WorkspaceAgent struct {
Subsystems []AgentSubsystem `json:"subsystems"`
Health WorkspaceAgentHealth `json:"health"` // Health reports the health of the agent.
DisplayApps []DisplayApp `json:"display_apps"`
WorkspaceApps []string `json:"workspace_apps"`
LogSources []WorkspaceAgentLogSource `json:"log_sources"`
Scripts []WorkspaceAgentScript `json:"scripts"`

Expand Down
2 changes: 2 additions & 0 deletionsprovisioner/terraform/resources.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,6 +59,7 @@ type agentAttributes struct {
MOTDFile string `mapstructure:"motd_file"`
Metadata []agentMetadata `mapstructure:"metadata"`
DisplayApps []agentDisplayAppsAttributes `mapstructure:"display_apps"`
WorkspaceApps []string `mapstructure:"workspace_apps"`
Order int64 `mapstructure:"order"`
ResourcesMonitoring []agentResourcesMonitoring `mapstructure:"resources_monitoring"`
}
Expand DownExpand Up@@ -348,6 +349,7 @@ func ConvertState(ctx context.Context, modules []*tfjson.StateModule, rawGraph s
ResourcesMonitoring: resourcesMonitoring,
Metadata: metadata,
DisplayApps: displayApps,
WorkspaceApps: attrs.WorkspaceApps,
Order: attrs.Order,
ApiKeyScope: attrs.APIKeyScope,
}
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp