Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
20 commits
Select commitHold shift + click to select a range
5c443de
RED: update unit test with new desired behaviour
johnstcnJun 7, 2022
c2127c1
cli: warn user upon ttl-triggered workspace shutdown
johnstcnJun 7, 2022
07320a4
GREEN: do the thing
johnstcnJun 8, 2022
7846dd8
REFACTOR: coderd: putWorkspaceTTL: wrap in tx
johnstcnJun 8, 2022
6d7187d
update unit tests
johnstcnJun 8, 2022
daa9a5f
feat: WorkspaceScheduleForm: show shutdown time when editing workspac…
johnstcnJun 8, 2022
fe79c0c
make it prettier
johnstcnJun 8, 2022
85da57b
hopefully fix unit tests
johnstcnJun 9, 2022
8c38a74
Merge remote-tracking branch 'origin/main' into cj/1783/updating-work…
johnstcnJun 9, 2022
a4c07df
Address PR comments
johnstcnJun 9, 2022
582873a
Merge origin/main
greyscaledJun 9, 2022
9a7c623
chore: WorkspaceScheduleForm: add unit tests
johnstcnJun 9, 2022
0278a93
WorkspaceScheduleForm: refactor ttlShutdownAt
johnstcnJun 9, 2022
a372dce
apply suggestions from code review
johnstcnJun 9, 2022
ac1d29a
fixup! apply suggestions from code review
johnstcnJun 9, 2022
23b474c
yarn lint; more pr comments
johnstcnJun 9, 2022
de28477
bump ci
johnstcnJun 9, 2022
a52d815
Merge remote-tracking branch 'origin/main' into cj/1783/updating-work…
johnstcnJun 9, 2022
fd86474
mind your language
johnstcnJun 9, 2022
2b9f93c
fumpt
johnstcnJun 9, 2022
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
PrevPrevious commit
fumpt
  • Loading branch information
@johnstcn
johnstcn committedJun 9, 2022
commit2b9f93cb3b0900b1b5893417889d4c6938ad253c
View file
Open in desktop
Original file line numberDiff line numberDiff 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp