Conversation
Up to now when selecting multiple resource records for deletion for each of them a single message has been sent to the DNS server. This commit changes the behavior to put all requested deletions into a single message, which improves performance.
There was a problem hiding this comment.
I'm not really fond of having output-formatting in the Python itself. Let the templates handle that.
This way also loses the ability to see a record-by-record accounting of failures and successes.
There was a problem hiding this comment.
I completely agree on the output formatting. It's just been a quick solution working with the current implementation of error handling in binder in general. I believe the error handling will need a complete overhaul anyway to be more precise and flexible. I intend to address that in future with another pull request.
Regarding the loss of the record-by-record accounting I'm not sure if that's worse than before, because all records which will be deleted belong to the same zone. So we know that if the key works for one of them, it works for the others too. And as the deletion of records even returns successfully if they are not existing, we don't loose information in such a case.
|
I've added some comments to the lines commented. Just in case they don't show up because of the updated diff. |
There was a problem hiding this comment.
I refuse to put any sort of formatting of the data in the Python itself. Leave the output formatting for the templates.
|
I understand your concerns regarding the output formatting in code. As I don't have a good solution for that right now, let's just keep the pull request as it is (or close it if you want). |
Up to now when selecting multiple resource records for deletion for each of
them a single message has been sent to the DNS server. This commit changes the
behavior to put all requested deletions into a single message, which improves
performance.