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

zone-lockdown: paginating list response #1017

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

tamas-jozsa
Copy link
Contributor

Description

I'm adding pagination for ListZoneLockdowns API. Additionally, I'm bringing Lockdown APIs to a common pattern. Instead of returning ZoneLockdownResponse they will return ZoneLockdown so they are easier to use.

Has your change been tested?

Unit tests are working

Screenshots (if appropriate):

Types of changes

What sort of change does your code introduce/modify?

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • This change is using publicly documented (api.cloudflare.com or developers.cloudflare.com) and stable APIs.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2022

changelog detected ✅

@tamas-jozsa tamas-jozsa force-pushed the tamas/pagination_for_cloudflare_zone_lockdown branch from fb8e269 to 6fc060e Compare August 4, 2022 14:43
@codecov-commenter
Copy link

codecov-commenter commented Aug 4, 2022

Codecov Report

Merging #1017 (241b43c) into master (6c5ea4a) will increase coverage by 0.18%.
The diff coverage is 66.00%.

@@            Coverage Diff             @@
##           master    #1017      +/-   ##
==========================================
+ Coverage   49.06%   49.24%   +0.18%     
==========================================
  Files         108      112       +4     
  Lines       10428    10560     +132     
==========================================
+ Hits         5116     5200      +84     
- Misses       4200     4232      +32     
- Partials     1112     1128      +16     
Impacted Files Coverage Δ
access_application.go 76.52% <ø> (ø)
access_bookmark.go 72.44% <ø> (ø)
lockdown.go 57.69% <66.00%> (+6.94%) ⬆️
workers_subdomain.go 57.14% <0.00%> (ø)
workers_account_settings.go 35.71% <0.00%> (ø)
workers_tail.go 52.00% <0.00%> (ø)
r2_bucket.go 100.00% <0.00%> (ø)
filter.go 42.96% <0.00%> (+0.51%) ⬆️
firewall_rules.go 53.98% <0.00%> (+1.39%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tamas-jozsa tamas-jozsa changed the title zone_lockdown: paginating list response zone-lockdown: paginating list response Aug 4, 2022
Copy link
Member

@jacobbednarz jacobbednarz left a comment

Choose a reason for hiding this comment

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

instead of introducing a change that takes us further away from the experimental method signatures, let's update it to move towards it.

check out https://github.com/cloudflare/cloudflare-go/blob/master/tunnel.go for an example of where we should head.

@tamas-jozsa tamas-jozsa force-pushed the tamas/pagination_for_cloudflare_zone_lockdown branch 2 times, most recently from e3f5d02 to fdb8cee Compare August 8, 2022 11:47
@tamas-jozsa tamas-jozsa linked an issue Aug 8, 2022 that may be closed by this pull request
@tamas-jozsa
Copy link
Contributor Author

instead of introducing a change that takes us further away from the experimental method signatures, let's update it to move towards it.

check out https://github.com/cloudflare/cloudflare-go/blob/master/tunnel.go for an example of where we should head.

That's very useful, thanks Jacob! I've opened an issue for further clarifications: 1023

@tamas-jozsa tamas-jozsa force-pushed the tamas/pagination_for_cloudflare_zone_lockdown branch from fdb8cee to 20ce85c Compare August 9, 2022 11:30
@tamas-jozsa tamas-jozsa force-pushed the tamas/pagination_for_cloudflare_zone_lockdown branch from 20ce85c to 8882f90 Compare August 9, 2022 11:33
@jacobbednarz jacobbednarz merged commit 6fbae33 into master Aug 11, 2022
@jacobbednarz jacobbednarz deleted the tamas/pagination_for_cloudflare_zone_lockdown branch August 11, 2022 00:24
@github-actions github-actions bot added this to the v0.47.0 milestone Aug 11, 2022
github-actions bot pushed a commit that referenced this pull request Aug 11, 2022
@github-actions
Copy link
Contributor

This functionality has been released in v0.47.0.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

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.

Pagination for zone-lockdown
3 participants