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

Commit19e9712

Browse files
committed
mark existing fields in codersdk as deprecated
1 parentcaebbac commit19e9712

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

‎codersdk/workspaceapps.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,14 @@ type WorkspaceAppStatus struct {
106106
AgentID uuid.UUID`json:"agent_id" format:"uuid"`
107107
AppID uuid.UUID`json:"app_id" format:"uuid"`
108108
StateWorkspaceAppStatusState`json:"state"`
109-
Messagestring`json:"message"`
109+
// Deprecated: This field is unused and will be removed in a future version.
110+
NeedsUserAttentionbool`json:"needs_user_attention"`
111+
Messagestring`json:"message"`
110112
// URI is the URI of the resource that the status is for.
111113
// e.g. https://github.com/org/repo/pull/123
112114
// e.g. file:///path/to/file
113115
URIstring`json:"uri"`
116+
// Icon is an external URL to an icon that will be rendered in the UI.
117+
// Deprecated: This field is unused and will be removed in a future version.
118+
Iconstring`json:"icon"`
114119
}

‎site/src/api/typesGenerated.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/testHelpers/entities.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,9 @@ export const MockWorkspaceAppStatus: TypesGen.WorkspaceAppStatus = {
987987
uri:"https://github.com/coder/coder/pull/1234",
988988
message:"Your competitors page is completed!",
989989
state:"complete",
990+
// Deprecated fields
991+
needs_user_attention:false,
992+
icon:"deprecated",
990993
};
991994

992995
exportconstMockWorkspaceAgentDisconnected:TypesGen.WorkspaceAgent={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp