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

Make rate limiting correlate optional #281

Merged

Conversation

jacobbednarz
Copy link
Member

@jacobbednarz jacobbednarz commented Mar 14, 2019

While looking into an issue in the Terraform provider, I've found that
the correlate values for rate limiting are always being sent
regardless of whether the value is set or not. This isn't really a big
deal as I'm assuming the API endpoint just disregard it but for the
Terraform provider, it does make the state management more difficult and
messy than what it needs to be due to the nested types.

Instead of always sending the value, I've updated the struct to allow
nil and to omit when the values are empty resulting in a fix for the
issues downstream.

While looking into an issue in the Terraform provider, I've found that
the `correlate` values for rate limiting are always being sent
regardless of whether the value is set or not. This isn't really a big
deal as I'm assuming the API endpoint just disregard it but for the
Terraform provider, it does make the state management more difficult and
messy than what it needs to be due to the nested types.

Instead of always sending the value, I've updated the struct to allow
`nil` and to omit when the values are empty resulting in a fix for the
issues downstream.
@patryk patryk merged commit 796cf82 into cloudflare:master Mar 26, 2019
@jacobbednarz jacobbednarz deleted the make-rate-limit-correlate-optional branch March 26, 2019 23:33
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