Core devs:
Any reason not to use database transactions to make sure we don't end
up with incomplete/corrupted data? I don't have any evidence that
would have saved my bacon in this particular case. But in the process
of investigating I noticed how many complex views there are creating
several different types of objects in one go but are not wrapped in a
transaction.
> Hi Izantal,
>
>> If so it's more of a paypal payment module issue then satchmo.
>
> Are you suggesting that the payment module may be deleting orders and
> orderitems somehow? If so, any thoughts how that might be happening?
>
> -Brian
>
> On Aug 3, 2:40 pm, lzantal <lzan...@gmail.com> wrote:
>> Hi,
>>
>> John-Scott are you also using PayPal like Brian Tol?
>> If so it's more of a paypal payment module issue then satchmo.
>> Just a thought
>>
>> lzantal
I am not using PayPal.
Without knowing the nitty gritty, I do not see how the payment module could have been responsible for missing data in Brian's case. All the order information was intact when the payment was captured by PayPal. At some point after this, OrderItems or entire Orders went missing.
In satchmo_store.shop.models there is OrderManager.remove_partial_order() which will "Delete cart from request if it exists and is incomplete (has no status)". There is also Order.remove_all_items() which will "Delete all items belonging to this order." These were the only two explicit references to deleting Order and OrderItem objects, so it may be worth checking into when these are called.
John-Scott