Skip to content

feat: update workspace deadline when workspace ttl updated #2165

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 20 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fumpt
  • Loading branch information
johnstcn committed Jun 9, 2022
commit 2b9f93cb3b0900b1b5893417889d4c6938ad253c
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import advancedFormat from "dayjs/plugin/advancedFormat"
import timezone from "dayjs/plugin/timezone"
import utc from "dayjs/plugin/utc"
import * as Mocks from "../../testHelpers/entities"
import {
WorkspaceScheduleForm,
defaultWorkspaceSchedule,
WorkspaceScheduleFormProps,
} from "./WorkspaceScheduleForm"
import { defaultWorkspaceSchedule, WorkspaceScheduleForm, WorkspaceScheduleFormProps } from "./WorkspaceScheduleForm"

dayjs.extend(advancedFormat)
dayjs.extend(utc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,20 +161,8 @@ describe("validationSchema", () => {

describe("ttlShutdownAt", () => {
it.each<[dayjs.Dayjs, Workspace, string, number, string]>([
[
dayjs("2022-05-17T18:09:00Z"),
Mocks.MockStoppedWorkspace,
"America/Chicago",
1,
Language.ttlHelperText,
],
[
dayjs("2022-05-17T18:09:00Z"),
Mocks.MockWorkspace,
"America/Chicago",
0,
Language.ttlCausesNoShutdownHelperText,
],
[dayjs("2022-05-17T18:09:00Z"), Mocks.MockStoppedWorkspace, "America/Chicago", 1, Language.ttlHelperText],
[dayjs("2022-05-17T18:09:00Z"), Mocks.MockWorkspace, "America/Chicago", 0, Language.ttlCausesNoShutdownHelperText],
[
dayjs("2022-05-17T18:09:00Z"),
Mocks.MockWorkspace,
Expand Down