Closed danielfdsilva closed 7 years ago
@gmaclennan dig it! Changed the code according to suggestion.
@danielfdsilva thanks for this! LGTM
Sorry I forgot to merge this. I think because of the failing test, but that's an outstanding issue that has been there for a while and needs fixed: we don't record the changeset for deletes.
Thanks for this @danielfdsilva, I had not realized that the API 0.6 spec does not enforce this order, but I checked and it does not. I am wondering if this might create some strange edge cases because we lose the ordering of the
<create>
,<modify>
,<delete>
blocks, whose order is specified in the API. I'm wondering whether it might be safer to just run the map function twice:I think performance would be about the same and this way would create fewer objects that would need garbage collected.