Closed mfiedorowicz closed 8 months ago
Payloads used for testing:
{ "change_set_id": "1a6bbc49-6144-442b-b46c-e3fbef7a016c", "change_set": [ { "change_id": "d4a86df7-4f7a-4f5c-8a47-b9dfe72363fe", "change_type": "create", "object_version": null, "object_type": "dcim.site", "object_id": null, "data": { "name": "undefined", "slug": "undefined" } }, { "change_id": "a5b4d886-bb65-463e-a95b-bb76bf0be860", "change_type": "create", "object_version": null, "object_type": "dcim.manufacturer", "object_id": null, "data": { "name": "undefined", "slug": "undefined" } }, { "change_id": "ade69e9b-afcc-45ab-a516-9cfb0dbfcdbe", "change_type": "create", "object_version": null, "object_type": "dcim.devicerole", "object_id": null, "data": { "name": "undefined", "slug": "undefined", "color": "ffc107" } }, { "change_id": "28a5cce5-1444-464e-bb64-727b930c7f0a", "change_type": "create", "object_version": null, "object_type": "dcim.devicetype", "object_id": null, "data": { "model": "undefined", "slug": "undefined", "manufacturer": {"name": "undefined"} } }, { "change_id": "165586e5-5b0c-4865-81fb-ef5e59a8a97c", "change_type": "create", "object_version": null, "object_type": "dcim.device", "object_id": null, "data": { "name": "router01", "slug": "router01", "site": {"name": "undefined"}, "device_type": {"model": "undefined"}, "role": {"name": "undefined"} } } ] }
undefined-2
{ "change_set_id": "1a6bbc49-6144-442b-b46c-e3fbef7a016c", "change_set": [ { "change_id": "d4a86df7-4f7a-4f5c-8a47-b9dfe72363fe", "change_type": "create", "object_version": null, "object_type": "dcim.site", "object_id": null, "data": { "name": "undefined-2", "slug": "undefined-2" } }, { "change_id": "165586e5-5b0c-4865-81fb-ef5e59a8a97c", "change_type": "create", "object_version": null, "object_type": "dcim.device", "object_id": null, "data": { "name": "router02", "slug": "router02", "site": { "name": "undefined" }, "device_type": { "model": "undefined" }, "role": { "name": "undefined-2" } } } ] }
As we're depending on the order of changes to commit provided in the change set, we need to run serializers validation after we `save()` each changes within the atomic transaction.
Payloads used for testing:
undefined-2
doesn't exist):