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

Commitf56d7e0

Browse files
DanielleMaywoodEmyrk
authored andcommitted
feat: addparent_id column toworkspace_agents table (#17758)
Adds a new nullable column `parent_id` to `workspace_agents` table. Thislays the groundwork for having child agents.(cherry picked from commit0b5f27f)
1 parent780d36a commitf56d7e0

25 files changed

+275
-27
lines changed

‎coderd/apidoc/docs.go‎

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

‎coderd/apidoc/swagger.json‎

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

‎coderd/database/dbgen/dbgen.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func WorkspaceAgentPortShare(t testing.TB, db database.Store, orig database.Work
157157
funcWorkspaceAgent(t testing.TB,db database.Store,orig database.WorkspaceAgent) database.WorkspaceAgent {
158158
agt,err:=db.InsertWorkspaceAgent(genCtx, database.InsertWorkspaceAgentParams{
159159
ID:takeFirst(orig.ID,uuid.New()),
160+
ParentID:takeFirst(orig.ParentID, uuid.NullUUID{}),
160161
CreatedAt:takeFirst(orig.CreatedAt,dbtime.Now()),
161162
UpdatedAt:takeFirst(orig.UpdatedAt,dbtime.Now()),
162163
Name:takeFirst(orig.Name,testutil.GetRandomName(t)),

‎coderd/database/dbmem/dbmem.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9477,6 +9477,7 @@ func (q *FakeQuerier) InsertWorkspaceAgent(_ context.Context, arg database.Inser
94779477

94789478
agent:= database.WorkspaceAgent{
94799479
ID:arg.ID,
9480+
ParentID:arg.ParentID,
94809481
CreatedAt:arg.CreatedAt,
94819482
UpdatedAt:arg.UpdatedAt,
94829483
ResourceID:arg.ResourceID,

‎coderd/database/dump.sql‎

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

‎coderd/database/foreign_key_constraint.go‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTERTABLE workspace_agents
2+
DROP COLUMN IF EXISTS parent_id;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTERTABLE workspace_agents
2+
ADD COLUMN parent_id UUIDREFERENCES workspace_agents (id)ON DELETE CASCADE;

‎coderd/database/models.go‎

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp