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: add locked TTL field to template meta#8020

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
sreya merged 8 commits intomainfromjon/lockedttl
Jun 20, 2023
Merged

Conversation

sreya
Copy link
Collaborator

No description provided.

@sreyasreya requested a review fromKira-PilotJune 15, 2023 18:50
@sreyasreya marked this pull request as ready for reviewJune 15, 2023 18:50
const (
failureTTL=7*24*time.Hour
inactivityTTL=180*24*time.Hour
lockedTTL=360*24*time.Hour
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

NIT: I think I stuck my tests in thecoderd folder as well - I'm wondering if they should actually live inenterprise/coderd

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

probably good to have tests in both

"max_ttl":ActionTrack,
"failure_ttl":ActionTrack,
"inactivity_ttl":ActionTrack,
"locked_ttl":ActionTrack,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

😸

}
}

consthandleToggleLockedCleanup=async(e:ChangeEvent)=>{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

NIT: Since we now have 3 toggling functions, we might be able to refactor into one function that takes two form values, e.g.locked_cleanup_enabled andlocked_ttl_ms and appropriately toggles TTL.

sreya reacted with thumbs up emoji
ttl={form.values.locked_ttl_ms}
/>,
)}
disabled={isSubmitting||!form.values.locked_cleanup_enabled}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should this field also be disabled if Inactivity Cleanup is disabled? Not sure that it makes sense to have one without the other, although perhaps we'll have manual locking down the road:
Screenshot 2023-06-15 at 3 17 22 PM

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah I think that probably makes sense, we can fix it in a follow up PR.

@sreyasreya merged commitc3aef93 intomainJun 20, 2023
@sreyasreya deleted the jon/lockedttl branchJune 20, 2023 02:37
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 20, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@Kira-PilotKira-PilotKira-Pilot approved these changes

Assignees

@sreyasreya

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@sreya@Kira-Pilot

[8]ページ先頭

©2009-2025 Movatter.jp