You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a distribution sets the storage location to total inventory 0 and read_events is enabled, the original storage location won't show up when editing the distribution. Submission fails with "Couldn't find StorageLocation with 'id'=". You have to get this error message before the storage location becomes visible again and you can properly save.
(Ran across this when testing DistributionCreateService)
Expected Behavior
You should be able to edit the distribution at the original storage location without having to go through the error
Steps To Reproduce
Enable read_events
Create a new storage location
Create a donation to that storage location, e.g. Adult Briefs (1)
Create a distribution which empties that storage location to total inventory 0, e.g. Adult Briefs (1)
Attempt to edit this distribution and select the original storage location
Criteria for Completion
fix
write test
Anything else?
Code of Conduct
I've read the Code of Conduct and understand my responsibilities as a member of the Ruby for Good community
The text was updated successfully, but these errors were encountered:
jimmyli97
changed the title
[BUG]: distributions from a storage location can't be edited when storage location is at inventory 0
[BUG]: can't edit original storage location of a distribution when storage location has total inventory 0
Jul 17, 2024
Is there an existing issue for this?
Current Behavior
If a distribution sets the storage location to total inventory 0 and read_events is enabled, the original storage location won't show up when editing the distribution. Submission fails with "Couldn't find StorageLocation with 'id'=". You have to get this error message before the storage location becomes visible again and you can properly save.
(Ran across this when testing DistributionCreateService)
Expected Behavior
You should be able to edit the distribution at the original storage location without having to go through the error
Steps To Reproduce
Criteria for Completion
Anything else?
Code of Conduct
The text was updated successfully, but these errors were encountered: