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

logpush: modernise methods #1326

Merged
merged 2 commits into from Jul 5, 2023

Conversation

jacobbednarz
Copy link
Member

Updates the logpush methods to:

  • Use the newer client method signatures
  • Remove the duplicate internal methods
    for account/zone level methods in favour of using *ResourceContainer
  • Stop using AccessIdentifiers

This introduces a bit more duplication in the Create/Update methods however
it does allow us to handle creation and updates separately explicitly instead
of bunching all the logic into a single method with conditionals.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

changelog detected ✅

Updates the logpush methods to:

- Use the newer client method signatures - Remove the duplicate internal methods
for account/zone level methods in favour of using `*ResourceContainer` - Stop
using `AccessIdentifiers`

This introduces a bit more duplication in the `Create`/`Update` methods however
it does allow us to handle creation and updates separately explicitly instead
of bunching all the logic into a single method with conditionals.
@codecov-commenter
Copy link

Codecov Report

Merging #1326 (0a58e18) into master (b9ac804) will decrease coverage by 0.01%.
The diff coverage is 48.62%.

@@            Coverage Diff             @@
##           master    #1326      +/-   ##
==========================================
- Coverage   48.33%   48.33%   -0.01%     
==========================================
  Files         133      133              
  Lines       13023    13038      +15     
==========================================
+ Hits         6295     6302       +7     
- Misses       5201     5207       +6     
- Partials     1527     1529       +2     
Impacted Files Coverage Δ
logpush.go 51.81% <46.15%> (-0.30%) ⬇️
access_policy.go 70.27% <100.00%> (ø)

@jacobbednarz jacobbednarz merged commit 78f123f into cloudflare:master Jul 5, 2023
11 checks passed
@jacobbednarz jacobbednarz deleted the modernise-logpush branch July 5, 2023 04:02
@github-actions github-actions bot added this to the v0.72.0 milestone Jul 5, 2023
github-actions bot pushed a commit that referenced this pull request Jul 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

This functionality has been released in v0.72.0.

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants