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
resource/cloudflare_ruleset: add 'ignore' to cache rules query_string #2074
Conversation
changelog detected ✅ |
depends on cloudflare/cloudflare-go#1140 |
I'll need to update the logic to transform this |
Bumps [github.com/cloudflare/cloudflare-go](https://github.com/cloudflare/cloudflare-go) from 0.55.0 to 0.56.0. - [Release notes](https://github.com/cloudflare/cloudflare-go/releases) - [Changelog](https://github.com/cloudflare/cloudflare-go/blob/master/CHANGELOG.md) - [Commits](cloudflare/cloudflare-go@v0.55.0...v0.56.0) --- updated-dependencies: - dependency-name: github.com/cloudflare/cloudflare-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
i cherry picked dependabots bump of cloudflare-go into this PR so i can make the additional changes i needed. We can wait to merge this until after the dependency bump PR goes through. |
you shouldn't need to cherry pick in version bumps as we do them in a way that once it is merged, you can rebase in master and everything works without weird dependencies between branches. |
can you please add test coverage for this new schema field and run |
…ider-cloudflare into update-cache-rules-schema
@jacobbednarz I believe this is good to go now. |
cool! will run the acceptance tests later today and get this merged. |
running the tests shows that we aren't setting the
the transformation is missing from https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/provider/resource_cloudflare_ruleset.go#L1078-L1103 but at the same time, we aren't actually setting a key anywhere for |
Using Right now, the cache ruleset can return a couple of different responses.
include all query params
The response can also have a list of query strings to include or exclude. |
Taking another look at this, i think i'm making this more complicated than it needs to be. I think this could be completely handled in cf-terraforming by transform the response from |
Add the 'ignore' field to cache rules 'query_string'. This replaces 'exclude = "*"'.