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

Explicitly specify enum values for RunStatus #1322

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

cdzombak
Copy link
Contributor

@cdzombak cdzombak commented May 6, 2024

Description

During onboarding, I noticed the scary warning comment on this enum. Rather than relying only on the order of these declarations, can we explicitly specify their values?

Or does this break https://github.com/dmarkham/enumer ?

Edited to add: AFAICT locally, enumer handles this change fine.

Motivation

Reduce room for human error.

Type of change

  • Chore (refactors, upgrades, etc.)
  • Bug fix (non-breaking change that fixes an issue)
  • Security fix (non-breaking change that fixes a potential vulnerability)
  • Docs
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist

  • I've linked any associated issues to this PR.
  • I've tested my own changes.

Copy link

vercel bot commented May 6, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
ui ⬜️ Ignored (Inspect) May 6, 2024 8:34pm

@cdzombak cdzombak merged commit 3146876 into main May 7, 2024
12 checks passed
@cdzombak cdzombak deleted the cdz/enum-stability branch May 7, 2024 13:20
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.

None yet

2 participants