-
Notifications
You must be signed in to change notification settings - Fork 23
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
RPCAPI deprecation warnings #790
Comments
I think this would be nice to make room for such channel. With regard to your suggested design, here are the methods that need to be updated:
The suggestion is to provide a new name for the ones that need to be updated. I think we could revise the name of all methods to provide something more consistent.
Then I used the group as prefix and came up with the following suggestion (
What do you think? edit: the old/new array has a new proposal, see #790 (comment) |
I like the idea of creating more consistent naming, and I think your proposal is good. I have some suggestions for improvements.
To be consistent with the the rest, e.g.
I think
I think
To be consistent with batch testing, |
If we update the API is updated I suggest that we add the Zonemaster::LDNS version to the |
The user would not be happy to get warnings about deprecated API methods. I do not really see how this approach should reach the adminitrator.
I think it would make more sense to create a deprecation document and to point to that document in installation document, release notes and README of Zonemaster-Backend. |
Updating the proposal with your feedback:
|
Looks fine. |
This makes sense to me. And also the ldns version. In an ideal world Zonemaster::LDNS would simply be a bunch of Perl bindings for ldns. In that case the version number of the bindings would be of limited use, but as things stands Zonemaster::LDNS also includes a bunch of Perl code that really ought to be moved to Zonemaster::Engine, so until we get that cleaned up we should really include the Zonemaster::LDNS version too. The version numbers returned by I think we should:
However this could be done independently of the API change. Adding a new field to an existing object in an RPCAPI result should be considered an addition, not a breaking change. (I.e. a bump to the minor version, not to the major version.) |
Can you describe how this would negatively affect the user? Regarding administrators we could update GUI to detect these warnings and log them. (We do have a log like this, don't we?) The administrator already has a responsibility to monitor the logs. |
I really like the updated method renaming proposal! However I do have an old terminology itch that I'd like to scratch a little more here. I guess the basic goal I'm aiming for is to reduce the overloading of the term "test". I suggest changing the "test" category to "job" and changing the "_create_job" suffix to just "_create" or to "_enqueue". A |
Updating the proposal with latest feedback:
Using About |
The focus of Zonemaster is not domain names but tests of domain names. I think I agree that |
This issue was implemented in #1054. I had a look through this thread and identified a couple of followups that can be implemented separately. |
Purpose
It should be possible to report deprecation warnings back to RPCAPI clients. This would allow us to update the APIs in a friendlier fashion.
Scope
This issue is about creating a channel or making room for delivery of deprecation warnings. It is not about introducing deprecation warnings.
Design
Implementation-wise you'd probably have one method call the other and just modify the result. Documentation-wise you'd probably do something similar.
It would be nice if we could have the old methods emit deprecation warnings when you use them, encouraging clients to migrate to the new method. But that's exactly the problem with those methods. We can't. And that's exactly why they're being replaced.
Alternatives
The text was updated successfully, but these errors were encountered: