Reinstate old RPC API methods#1111
Conversation
|
|
This reverts commit 86063c6. Skip a now empty unit test on deprecated configuration values.
This reverts commit 41850d0.
This reverts commit 87a2220.
This reverts commit 4dd6d09.
This reverts commit c619bec.
* Revert "Mark all API methods as deprecated" This reverts commit 5169feb. * Remove other comments from other commits
* Some API methods are already returning an object. This object can be returned. * For other methods, wrap the result in an object
Good point. I've restarted from scratch this PR with an hopefully better approach allowing for a better understanding of what's being done. I think this is now ready for review. |
mattias-p
left a comment
There was a problem hiding this comment.
I haven't tested but this looks good to me.
|
In the psgi file there's a check for Also from my point of view it would be better to forbid specifying both RPCAPI.enable_add_batch_user and RPCAPI.enable_user_create in the same config. |
* using RPCAPI.enable_add_api_user or RPCAPI.enable_user_create should enable both add_api_user and user_create methods. * using RPCAPI.enable_add_batch_job or RPCAPI.enable_batch_create should enable both add_batch_job and batch_create methods. * add configuration unit test
|
I've updated the PR to be aligned with the current documentation in zonemaster/zonemaster#1162. And as suggested, an error is now raised if both stable and experimental parameters are defined in the configuration file. |
tgreenx
left a comment
There was a problem hiding this comment.
I have manually tested all methods ("old" and "new") and found one error. Other than that LGTM.
|
To quote comment from the documentation PR (zonemaster/zonemaster#1162 (comment)): AFAICT this PR is done. I've gotten a few reviews, addressed all comments up to this point and everybody seems ok with the implementation.
I think we reached that point. |
|
I think this can be merged. |
Purpose
Remove deprecation warning and comments to all old RPC API methods and mark the new methods as experimental.
What were the deprecated methods (and old stable) are again the default stable API methods.
Context
zonemaster/zonemaster#1159
Relates to #1054 and #1083.
Changes
Revert commits where old methods were deprecated and based upon new methods. Now the experimental methods are based on the stable one.
How to test this PR