Skip to content

Commit 4e295f8

Browse files
committed
update golden file
1 parent 2a9713b commit 4e295f8

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed

cli/testdata/coder_create_--help.golden

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ USAGE:
1010
$ coder create <username>/<workspace_name>
1111

1212
OPTIONS:
13+
--activity-bump duration (default: 0)
14+
Specify a default amount of time to bump the deadline for the
15+
workspaces based on workspace activity. By default, activity will
16+
extend the deadline for a workspace by the 'stop-after' amount.
17+
1318
--automatic-updates string, $CODER_WORKSPACE_AUTOMATIC_UPDATES (default: never)
1419
Specify automatic updates setting for the workspace (accepts 'always'
1520
or 'never').

cli/testdata/coder_templates_create_--help.golden

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ USAGE:
66
Create a template from the current directory or as specified by flag
77

88
OPTIONS:
9+
--default-activity-bump duration (default: 0)
10+
Specify a default amount of time to bump the deadline for the
11+
workspaces based on workspace activity. By default, activity will
12+
extend the deadline for a workspace by the 'default-ttl' amount.
13+
914
--default-ttl duration (default: 24h)
1015
Specify a default TTL for workspaces created from this template. It is
1116
the default time before shutdown - workspaces created from this

cli/testdata/coder_templates_edit_--help.golden

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ OPTIONS:
2323
this value for the template (and allow autostart on all days), pass
2424
'all'.
2525

26+
--default-activity-bump duration (default: 0)
27+
Specify a default amount of time to bump the deadline for the
28+
workspaces based on workspace activity. By default, activity will
29+
extend the deadline for a workspace by the 'default-ttl' amount.
30+
2631
--default-ttl duration
2732
Edit the template default time before shutdown - workspaces created
2833
from this template default to this value. Maps to "Default autostop"

cli/testdata/coder_templates_list_--help.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ OPTIONS:
1111
-c, --column string-array (default: name,last updated,used by)
1212
Columns to display in table output. Available columns: name, created
1313
at, last updated, organization id, provisioner, active version id,
14-
used by, default ttl.
14+
used by, default ttl, default ttl bump.
1515

1616
-o, --output string (default: table)
1717
Output format. Available formats: table, json.

site/src/pages/TemplateSettingsPage/TemplateGeneralSettingsPage/TemplateSettingsPage.test.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import { getValidationSchema } from "./TemplateSettingsForm";
1212
import { TemplateSettingsPage } from "./TemplateSettingsPage";
1313

1414
type FormValues = Required<
15-
Omit<UpdateTemplateMeta, "default_ttl_ms" | "max_ttl_ms">
15+
Omit<
16+
UpdateTemplateMeta,
17+
"default_ttl_ms" | "max_ttl_ms" | "default_ttl_bump_ms"
18+
>
1619
>;
1720

1821
const validFormValues: FormValues = {

site/src/testHelpers/entities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ export const MockTemplate: TypesGen.Template = {
441441
},
442442
description: "This is a test description.",
443443
default_ttl_ms: 24 * 60 * 60 * 1000,
444+
default_ttl_bump_ms: 0,
444445
max_ttl_ms: 2 * 24 * 60 * 60 * 1000,
445446
autostop_requirement: {
446447
days_of_week: [],

0 commit comments

Comments
 (0)