A possible fix would be to expand Pallet.add_packing_slip to loop through all of the crates in the slip and update these properties (are there any others?) of the actual crates. Here is where that method is called in engine.py.
This is causing the AGOL pallet to not update data in AGOL since it never has updated crates during ship.
Steps to reproduce
Expected behavior
crate.was_updated()
=>True
crate.result
=>"Data updated successfully."
Actual behavior
crate.was_updated()
=>False
crate.result
=>"This crate was never processed."
This causes problems for Pallets that want to act only if crates were updated during lift. For example: https://github.com/agrc/warehouse/blob/master/sgid/AGOLPallet.py#L71
A possible fix would be to expand
Pallet.add_packing_slip
to loop through all of the crates in the slip and update these properties (are there any others?) of the actual crates. Here is where that method is called inengine.py
.This is causing the AGOL pallet to not update data in AGOL since it never has updated crates during ship.