Repository navigation
Bind VM CodeRouter identity to persisted owner team #16333
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 8 commits
1737303
990002b
68bb587
fa75ca9
30706c1
b88d24c
94c82bd
100bfb4
a5a8b8e
f7aea3c
27e9477
bfe6ade
6a8ed5d
2dc9ad6
a9aa67e
25a71a8
9dad581
068bf22
7ebfcb0
2ef3fce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| CREATE TABLE "coderouter_pool_initializations" ( | ||
| "pool_id" uuid PRIMARY KEY REFERENCES "coderouter_pools" ("id") ON DELETE CASCADE, | ||
| "created_at" timestamptz NOT NULL DEFAULT now() | ||
| ); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -750,6 +750,19 @@ export function vmModelPlaneErrorResponse( | |
| _err: VmModelPlaneError, | ||
| phase: "create" | VmCreateLikeOperation = "create", | ||
| ): Response { | ||
| return vmErrorResponse({ | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| error: "vm_model_plane_team_mismatch", | ||
| status: 409, | ||
| message: "The Cloud VM team does not match its CodeRouter team.", | ||
| reason: "the VM team and CodeRouter team differ.", | ||
| action: "Retry with the team that owns this Cloud VM.", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '715,805p' web/services/vms/routeHelpers.ts
rg -n 'vmModelPlaneErrorResponse|context.locale|vmWorkflowErrorResponse' web/services/vms/routeHelpers.ts
cat .github/review-bot-rules/full-internationalization.md
cat web/i18n/routing.tsRepository: manaflow-ai/cmux Length of output: 9007 Localize the new team-mismatch response. The 🤖 Prompt for AI Agents |
||
| phase, | ||
| retryable: false, | ||
| displayTitle: "Cloud VM team mismatch", | ||
| displayMessage: "The VM could not be created because its team scope was stale.", | ||
| details: { retryable: false }, | ||
| }); | ||
| } | ||
| return vmErrorResponse({ | ||
| error: "vm_model_plane_unavailable", | ||
| status: 503, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.