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().
marc-vanderwal
left a comment
There was a problem hiding this comment.
Looks OK. Some minor suggestions.
Co-authored-by: Marc van der Wal <103426270+marc-vanderwal@users.noreply.github.com>
|
@mattias-p, you approved zonemaster/zonemaster#1304 (the specification). Can you please review/approve the PR (the implementation) too? |
mattias-p
left a comment
There was a problem hiding this comment.
Looks good overall. I have some comments.
Co-authored-by: Mattias Päivärinta <mattias@paivarinta.se>
|
@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. |
mattias-p
left a comment
There was a problem hiding this comment.
I have some comments about tightening up things, but otherwise this looks good.
Co-authored-by: Mattias Päivärinta <mattias@paivarinta.se>
MichaelTimbert
left a comment
There was a problem hiding this comment.
Tested and working.
Purpose
This PR implements the RPCAPI update in zonemaster/zonemaster/pull/1304.
Changes
batch_statuswas 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_testingandnumber_of_processes_for_batch_testingto a low value (e.g. 2). Start the batch withzmband read the batch status withzmb. Read the status with various values of the optional options.