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

Hotfix: add state migration for the string resource #28

Closed
wants to merge 1 commit into from

Conversation

mildwonkey
Copy link
Contributor

Set state defaults for the min_* options for users using random <= 1.3.0

Set defaults for the min_* options for users using random <= 1.3.0
Copy link
Contributor

@apparentlymart apparentlymart left a comment

Choose a reason for hiding this comment

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

This LGTM, but I'm pretty rusty on writing state migrate functions so I'll let someone with more recent experience 👀 this too. 😀

@katbyte katbyte requested review from katbyte and removed request for katbyte May 22, 2018 17:30

log.Printf("[DEBUG] Attributes before migration: %#v", is.Attributes)

if v, ok := is.Attributes["min_lower"]; !ok && v == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think if your trying to match either a missing or empty property this should be !ok || v == ""

@mildwonkey
Copy link
Contributor Author

I am going to close this and we can (please) review #29 - similar work, but by the original committer

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 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