Return copied CKRecords when modifying database.#507
Conversation
Co-authored-by: Stephen Celis <stephen@stephencelis.com>
|
I didn't have time to check in detail, but it looks like a duplicate of #412, which I've filed a while ago. |
|
Hi @lukaskubanek, yeah good catch, these PRs are closely related. Mine chose to fix the problem by forcing the And I know there's a lot more we need to get back into, so hopefully sometime soon :) |
Co-Authored-By: Lukas Kubanek <533299+lukaskubanek@users.noreply.github.com>
|
Hi @mbrandonw, I just looked at the diffs and your approach in this PR is way more robust and handles all the cases related to shared |
We have a few places we are accidentally returning references from the mock database that exist in the DB's storage. That allows the outside to make edits to the references in the DB. I've put in a few extra
copy()s to fix this.