Skip to content

chore: rename locked to dormant #9290

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 9 commits into from
Aug 24, 2023
Merged

chore: rename locked to dormant #9290

merged 9 commits into from
Aug 24, 2023

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Aug 23, 2023

  • The following columns have been updated:

    • workspace.locked_at -> dormant_at
    • template.inactivity_ttl -> time_til_dormant
    • template.locked_ttl -> time_til_dormant_autodelete
  • Theses changes have also been reflected in the SDK.

  • A route has been updated from /workspaces/<id>/lock to /workspaces/<id>/dormant

sreya added 6 commits August 24, 2023 00:16
- The following columns have been updated:
  - workspace.locked_at -> dormant_at
  - template.inactivity_ttl -> time_til_dormant
  - template.locked_ttl -> time_til_dormant_autodelete

This change has also been reflected in the SDK.
@sreya sreya force-pushed the jon/renamelocked branch from 11eca65 to 581ae4d Compare August 24, 2023 00:16
@sreya sreya requested a review from kylecarbs August 24, 2023 00:31
@sreya sreya marked this pull request as ready for review August 24, 2023 00:32
@@ -134,7 +134,7 @@ func (r *RootCmd) templateCreate() *clibase.Cmd {
VersionID: job.ID,
DefaultTTLMillis: ptr.Ref(defaultTTL.Milliseconds()),
FailureTTLMillis: ptr.Ref(failureTTL.Milliseconds()),
InactivityTTLMillis: ptr.Ref(inactivityTTL.Milliseconds()),
TimeTilDormantMillis: ptr.Ref(inactivityTTL.Milliseconds()),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
TimeTilDormantMillis: ptr.Ref(inactivityTTL.Milliseconds()),
TimeTilDormantMillis: ptr.Ref(timeTilDormant.Milliseconds()),

I am not sure, but should this be renamed too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably but it's just a local variable and they mean the same thing.

@sreya sreya merged commit 7f14b50 into main Aug 24, 2023
@sreya sreya deleted the jon/renamelocked branch August 24, 2023 18:25
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
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.

3 participants