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

Commit8de5657

Browse files
committed
chore: add API key ID to interceptions
1 parent197b422 commit8de5657

File tree

23 files changed

+217
-98
lines changed

23 files changed

+217
-98
lines changed

‎coderd/apidoc/docs.go‎

Lines changed: 3 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: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/db2sdk/db2sdk.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,9 @@ func AIBridgeInterception(interception database.AIBridgeInterception, initiator
974974
UserPrompts:sdkUserPrompts,
975975
ToolUsages:sdkToolUsages,
976976
}
977+
ifinterception.APIKeyID.Valid {
978+
intc.APIKeyID=&interception.APIKeyID.String
979+
}
977980
ifinterception.EndedAt.Valid {
978981
intc.EndedAt=&interception.EndedAt.Time
979982
}

‎coderd/database/dbgen/dbgen.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,7 @@ func ClaimPrebuild(
14981498
funcAIBridgeInterception(t testing.TB,db database.Store,seed database.InsertAIBridgeInterceptionParams,endedAt*time.Time) database.AIBridgeInterception {
14991499
interception,err:=db.InsertAIBridgeInterception(genCtx, database.InsertAIBridgeInterceptionParams{
15001500
ID:takeFirst(seed.ID,uuid.New()),
1501+
APIKeyID:seed.APIKeyID,
15011502
InitiatorID:takeFirst(seed.InitiatorID,uuid.New()),
15021503
Provider:takeFirst(seed.Provider,"provider"),
15031504
Model:takeFirst(seed.Model,"model"),

‎coderd/database/dump.sql‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTERTABLE aibridge_interceptions DROP COLUMN api_key_id;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTERTABLE aibridge_interceptions ADD COLUMN api_key_idtext;

‎coderd/database/modelqueries.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ func (q *sqlQuerier) ListAuthorizedAIBridgeInterceptions(ctx context.Context, ar
805805
&i.AIBridgeInterception.StartedAt,
806806
&i.AIBridgeInterception.Metadata,
807807
&i.AIBridgeInterception.EndedAt,
808+
&i.AIBridgeInterception.APIKeyID,
808809
&i.VisibleUser.ID,
809810
&i.VisibleUser.Username,
810811
&i.VisibleUser.Name,

‎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.

‎coderd/database/queries.sql.go‎

Lines changed: 14 additions & 7 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