-
Notifications
You must be signed in to change notification settings - Fork 597
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
fix(dns): keep comments intact with zero values of UpdateDNSRecordParams #1393
Conversation
changelog detected ✅ |
did you manually confirm these API calls are working for your use case on the PATCH endpoint? this lgtm |
Codecov Report
@@ Coverage Diff @@
## master #1393 +/- ##
==========================================
+ Coverage 48.33% 48.41% +0.08%
==========================================
Files 133 139 +6
Lines 13023 13809 +786
==========================================
+ Hits 6295 6686 +391
- Misses 5201 5466 +265
- Partials 1527 1657 +130
|
0a59e86
to
7f15f6c
Compare
@jacobbednarz Thanks for the reminder. I did the tests about |
7f15f6c
to
2ce6023
Compare
it is! and it only that, this is a shining example of where the CRUD operation specific params for a method allow us to make isolated changes without breaking all the method usages at once. |
@jacobbednarz Personally I think this is ready to go! |
thank you! |
This functionality has been released in v0.77.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
Calling
UpdateDNSRecord
with an (almost) zero value ofUpdateDNSRecordParams
will cause the existing comments to be erased. The solution is straightforward---change the type of the fieldComment
fromstring
to&string
, just like how the fieldProxy
has the type&bool
instead ofbool
.Closes #1371.
Has your change been tested?
Yes, but the test must be done against the real server. It is difficult to include a real test in the Go library.
Types of changes
What sort of change does your code introduce/modify?
Checklist:
and relies on stable APIs.