-
Notifications
You must be signed in to change notification settings - Fork 53
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
datasource int overflow #507
datasource int overflow #507
Conversation
Signed-off-by: dn <dn@nuvotex.de>
Hey @danielnachtrub, Thanks for the contribution - that's a great job. But could you please share some examples of the numbers that cause fields to overflow on your end? I quickly checked both our implementation and terraform-plugin-sdk. And they both use strconv underneath, so that the numbers should be converted to To be honest, I don't think it's correct to use |
Technically float is for sure not the right type because numbers are integers - just not int32. Here's what we've seen in the logs:
|
@danielnachtrub @dokmic |
I can't think of a case where full use of counters is possible within a deployment scenario. |
I agree on this one. So, should I prepare a PR that removes them instead of adjusting the value types? |
Sure, I don't mind. |
Clean nonstatic ds
Hi! I'll leave a link to a similar change I made yesterday. terraform-provider-routeros/routeros/resource_tool_netwatch.go Lines 28 to 40 in d0d88f2
#535 We can't just remove unnecessary attributes, as the user will get warnings about fields missing in the schema. |
@vaerh better now? |
Yes! I have one questions: |
ingress_priority & random
🎉 This PR is included in version 1.59.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes an issue on datasource types that export counters that can reach values larger than an int32. Switched to TypeFloat because it's underlying type is float64.