-
Notifications
You must be signed in to change notification settings - Fork 874
feat: reinitialize agents when a prebuilt workspace is claimed #17475
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 1 commit
c09c9b9
476fe71
8c8bca6
7ce4eea
52ac64e
362db7c
dcc7379
ff66b3f
efff5d9
cebd5db
2679138
9feebef
b117b5c
a22b414
9bbd2c7
5804201
7e8dcee
725f97b
a9b1567
21ee970
e54d7e7
2799858
1d93003
763fc12
0f879c7
61784c9
604eb27
bf4d2cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
-- name: InsertPreset :one | ||
INSERT INTO template_version_presets ( | ||
id, | ||
template_version_id, | ||
name, | ||
created_at, | ||
desired_instances, | ||
invalidate_after_secs | ||
) | ||
VALUES ( | ||
@id, | ||
@template_version_id, | ||
@name, | ||
@created_at, | ||
|
@@ -16,8 +18,9 @@ VALUES ( | |
|
||
-- name: InsertPresetParameters :many | ||
INSERT INTO | ||
template_version_preset_parameters (template_version_preset_id, name, value) | ||
template_version_preset_parameters (id, template_version_preset_id, name, value) | ||
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. Why is it important to be able to control the ID of a template version preset? 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. when setting up test environments where one needs to assert based on the relationships between presets, their parameters and other parts of the DB, we need to be able to express that relationship in the test by setting the ids explicitly. |
||
SELECT | ||
@id, | ||
@template_version_preset_id, | ||
unnest(@names :: TEXT[]), | ||
unnest(@values :: TEXT[]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this related to reinitialization, or fixing some other issue?