mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore(codersdk): deprecate WorkspaceAppStatus.{NeedsUserAttention,Icon} (#17358)
https://github.com/coder/coder/pull/17163 introduced the `workspace_app_statuses` table. Two of these fields (`needs_user_attention`, `icon`) turned out to be surplus to requirements. - Removes columns `needs_user_attention` and `icon` from `workspace_app_statuses` - Marks the corresponding fields of `codersdk.WorkspaceAppStatus` as deprecated.
This commit is contained in:
@ -583,12 +583,14 @@ func (c *Client) PatchLogs(ctx context.Context, req PatchLogs) error {
|
||||
|
||||
// PatchAppStatus updates the status of a workspace app.
|
||||
type PatchAppStatus struct {
|
||||
AppSlug string `json:"app_slug"`
|
||||
NeedsUserAttention bool `json:"needs_user_attention"`
|
||||
State codersdk.WorkspaceAppStatusState `json:"state"`
|
||||
Message string `json:"message"`
|
||||
URI string `json:"uri"`
|
||||
Icon string `json:"icon"`
|
||||
AppSlug string `json:"app_slug"`
|
||||
State codersdk.WorkspaceAppStatusState `json:"state"`
|
||||
Message string `json:"message"`
|
||||
URI string `json:"uri"`
|
||||
// Deprecated: this field is unused and will be removed in a future version.
|
||||
Icon string `json:"icon"`
|
||||
// Deprecated: this field is unused and will be removed in a future version.
|
||||
NeedsUserAttention bool `json:"needs_user_attention"`
|
||||
}
|
||||
|
||||
func (c *Client) PatchAppStatus(ctx context.Context, req PatchAppStatus) error {
|
||||
|
Reference in New Issue
Block a user