-
Notifications
You must be signed in to change notification settings - Fork 640
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
Update access resources to use account_id over zone_id #724
Update access resources to use account_id over zone_id #724
Conversation
This is a breaking change. We cannot merge it now as-is, unless the underlying API is removed. Good candidate for v3.0, though. |
I think we can still do this without incurring a breaking change right now but still migrate to the accounts API. My thinking
Then, the breaking change of removing Thoughts? |
Sounds good. I'm OK with it. |
3827a5f
to
419455e
Compare
I added the |
This looks pretty great! Thank you! Along with the inline comments, I feel it would be beneficial to add a test case to each that exercises the |
9b320dd
to
910d3ae
Compare
@jacobbednarz I added regression tests to the Access application and policy resources. I'm explicitly testing create and update actions since (from my understanding) the read and delete actions get tested implicitly -- let me know if my assumption on this is wrong! |
Thanks for the updates @Justin-Holmes 🌟 I've just kicked off the integration test runs and once we get a green run on there, we're good to merge this in. |
The CI tests are throwing some weird permission errors which I initially suspected as being caused by API token/API key differences however that doesn’t seem to be the case. I’m chatting with @patryk who is chasing this up internally to get an idea on the cause. |
I just found out why this is failing on permission errors. The upstream change to use the account endpoints hasn't been merged yet and the account ID is being used as a zone ID. I'm not sure why I thought this should work however to protect this PR from future Jacob getting excited to merge, I'll explicitly say it now. We're still pending cloudflare/cloudflare-go#486 for the CI suite to be green on this one. |
@Justin-Holmes you should be good to pull in the latest master, resolve these conflicts and we can get this one shipped! v0.13.1 of |
Also adds deprecation warning to zone_id
c4443cd
to
6a74cad
Compare
@jacobbednarz This should be good to go now! We may want to fast-track this PR since Access resources will be broken in the latest version until this gets merged in. Thanks again for the help. |
All good and thank you! I'll aim to get this merged in today. |
Integration suite is ✅
|
Adding support for Pages projects
This PR changes Access resources to use
account_id
overzone_id
since the/zones
routes have been deprecated in favor of/accounts
. I'll update thecloudflare-go
version once cloudflare/cloudflare-go#486 is merged.