-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LIMS-59: Never write null to DewarTransportHistory.storageLocation #597
LIMS-59: Never write null to DewarTransportHistory.storageLocation #597
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are several other places that this value could be null. Would it be wise to add a single function for adding dewar history? Maybe by using the updateDewarHistory funtion in assign data? Although it is a bit of a weird name for it. Feels like it would be better in a dewarData function?
@@ -3090,7 +3090,7 @@ function _cancel_pickup() | |||
$this->_error('No such lab contact'); | |||
$cont = $cont[0]; | |||
|
|||
$dewars = $this->db->pq("SELECT d.dewarid | |||
$dewars = $this->db->pq("SELECT d.dewarid, d.storagelocation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could the dewar storage location not be null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a check for null on line 3116
Refactoring into a single function is probably a good idea, but maybe that should be a new ticket. Hopefully have resolved the issues with any insert into DTH statements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests don't pass
Tests now pass :) |
…ttps://github.com/DiamondLightSource/SynchWeb into fix/LIMS-59/never-write-null-to-DTH-storageLocation
Ticket: LIMS-59