Skip to content

fix: use template default ttl when enabling auto-stop #5494

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 6 commits into from
Dec 22, 2022

Conversation

presleyp
Copy link
Contributor

Before, when you enabled auto-stop after it had been disabled, the field was populated with 12 no matter what. Now, it's populated with your template default ttl.

If the template default ttl is 0 (meaning "don't auto-stop"), it will populate 0, but if you try to submit that, you'll get a validation error saying it must be greater than 0 if auto-stop is enabled. This seems like the best way to handle it to me.

I'm going to work on testing later but wanted to get a review started.

@presleyp presleyp requested a review from a team as a code owner December 21, 2022 16:26
@presleyp presleyp requested review from BrunoQuaresma and removed request for a team December 21, 2022 16:26
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

Nice!

@presleyp presleyp merged commit 4180229 into main Dec 22, 2022
@presleyp presleyp deleted the 5154/ttl-default/presleyp branch December 22, 2022 17:52
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants