-
Notifications
You must be signed in to change notification settings - Fork 24
Redefines batch_status to replace get_batch_job_result #1215
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
Redefines batch_status to replace get_batch_job_result #1215
Conversation
* Makes API get_batch_job_result documented as deprecated. See PR zonemaster/zonemaster#1304 * Redefines API batch_status. See the same PR. zmb() is updated to be able to use the updated batch_status().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK. Some minor suggestions.
Co-authored-by: Marc van der Wal <[email protected]>
@mattias-p, you approved zonemaster/zonemaster#1304 (the specification). Can you please review/approve the PR (the implementation) too? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. I have some comments.
Co-authored-by: Mattias Päivärinta <[email protected]>
@mattias-p and @marc-vanderwal, could you review? |
* Adds documentation on "no-" prefixed options. * Creates and uses a new function for conversion into JSON boolean.
@mattias-p, I have reverted the change of the |
@marc-vanderwal, based on feedback from @mattias-p I changed the options for the new method. Can you rereview? @mattias-p, please rereview. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some comments about tightening up things, but otherwise this looks good.
Co-authored-by: Mattias Päivärinta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working.
Purpose
This PR implements the RPCAPI update in zonemaster/zonemaster/pull/1304.
Changes
batch_status
was defined as an alias toget_batch_job_result
. Now it redefined to be a smarter replacement of the old API.How to test this PR
Prepare a small batch (10-15 domain names) in a text file. Set down
number_of_processes_for_frontend_testing
andnumber_of_processes_for_batch_testing
to a low value (e.g. 2). Start the batch withzmb
and read the batch status withzmb
. Read the status with various values of the optional options.