Skip to content
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

chore: Bump API to latest main, include autoRestartPolicy in instance update #2526

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Oct 30, 2024

This will conflict with #2488 because that also bumps the API, but it should be easy to resolve.

The autoRestartPolicy thing is pretty important and also worrying because it's a bug that arises by you doing nothing, and you can't get a type error for it. autoRestartPolicy is optional on the instance update request body because you can leave it out (or pass in null or undefined) to unset the policy. But that means if you simply fail to include it, you are going to unset it on every update call. Here we fix that by always including the current value so it stays at whatever it is, but every client will have this problem.

In practice this is probably not a huge deal, because null falls back to best-effort (omicron source).

Copy link

vercel bot commented Oct 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Oct 30, 2024 3:11pm

@david-crespo david-crespo merged commit bdc1c87 into main Oct 30, 2024
8 checks passed
@david-crespo david-crespo deleted the bump-api branch October 30, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant