We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8f16b commit 54d6e7fCopy full SHA for 54d6e7f
src/scaup/crud/shipments.py
@@ -112,7 +112,10 @@ def create_all_items_in_shipment(
112
)
113
114
for sample in containerless_samples:
115
- Expeye.upsert(token, sample, None, session_id)
+ # There is no way of verifying orphan sample ownership in ISPyB, so we need to use SCAUP's
116
+ # token instead to create them on behalf of SCAUP, which has permission to manipulate all samples.
117
+ # TODO: revisit this when SCAUP creates containers, dewars and shipments for orphan samples
118
+ Expeye.upsert(Config.ispyb_api.jwt, sample, None, session_id)
119
120
modified_items = list(create_all_items_in_shipment(shipment, f"{shipment.proposalCode}{shipment.proposalNumber}"))
121
0 commit comments