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

Replace list of all job states with rivertype.JobStates() #310

Merged
merged 1 commit into from
May 2, 2024

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Apr 21, 2024

A small change that removes a list of all job states defined in
insert_opts.go that was used to validate states sent into UniqueOpts
with rivertype.JobStates() which was introduced recently n #297.
Removing one of the lists means we only need to maintain one of them.

I left the variable in place instead of invoking rivertype.JobStates()
so that we don't need to initialize a new slice every time we validate.

@brandur brandur requested a review from bgentry April 21, 2024 05:35
@brandur brandur force-pushed the brandur-replace-job-state-list branch from f38f502 to f653544 Compare May 2, 2024 00:25
A small change that removes a list of all job states defined in
`insert_opts.go` that was used to validate states sent into `UniqueOpts`
with `rivertype.JobStates()` which was introduced recently n #297.
Removing one of the lists means we only need to maintain one of them.

I left the variable in place instead of invoking `rivertype.JobStates()`
so that we don't need to initialize a new slice every time we validate.
@brandur brandur force-pushed the brandur-replace-job-state-list branch from f653544 to 19c5da7 Compare May 2, 2024 00:49
@bgentry bgentry merged commit 92c27c8 into master May 2, 2024
10 checks passed
@bgentry bgentry deleted the brandur-replace-job-state-list branch May 2, 2024 00:54
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