Skip to content

chore(codersdk): explain format of codersdk.UpdateWorkspaceAutostartRequest.Schedule #12539

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 1 commit into from
Mar 11, 2024

Conversation

johnstcn
Copy link
Member

No description provided.

@johnstcn johnstcn requested review from mafredri and mtojek March 11, 2024 22:20
@johnstcn johnstcn self-assigned this Mar 11, 2024
@johnstcn johnstcn requested a review from stirby March 11, 2024 22:33
Copy link
Collaborator

@stirby stirby left a comment

Choose a reason for hiding this comment

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

Awesome, glad we can get this in before 2.9.0.

@@ -253,6 +253,9 @@ func (c *Client) UpdateWorkspace(ctx context.Context, id uuid.UUID, req UpdateWo

// UpdateWorkspaceAutostartRequest is a request to update a workspace's autostart schedule.
type UpdateWorkspaceAutostartRequest struct {
// Schedule is expected to be of the form `CRON_TZ=<IANA Timezone> <min> <hour> * * <dow>`
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason we don't deprecate this field and instead make CronTimezone the property on the struct?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could definitely do this! Main reason was to document. Will file a follow-up.

@johnstcn johnstcn merged commit d704ff4 into main Mar 11, 2024
@johnstcn johnstcn deleted the cj/apidoc-schedule branch March 11, 2024 22:50
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2024
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