Skip to content

feat: add controls to template for determining startup days #10226

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

Merged
merged 14 commits into from
Oct 13, 2023
Prev Previous commit
Next Next commit
fix js test entities
  • Loading branch information
Emyrk committed Oct 11, 2023
commit 3bac18035d0ead24d16f6205f49c55341ae45314
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ const validFormValues: FormValues = {
days_of_week: [],
weeks: 1,
},
autostart_requirement: {
days_of_week: [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday",
],
},
failure_ttl_ms: 0,
time_til_dormant_ms: 0,
time_til_dormant_autodelete_ms: 0,
Expand Down
11 changes: 11 additions & 0 deletions site/src/testHelpers/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,17 @@ export const MockTemplate: TypesGen.Template = {
days_of_week: [],
weeks: 1,
},
autostart_requirement: {
days_of_week: [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday",
],
},
created_by_id: "test-creator-id",
created_by_name: "test_creator",
icon: "/icon/code.svg",
Expand Down