Fix worker registering trashed bags#17
Fix worker registering trashed bags#17louisradtke wants to merge 2 commits intoAMZ-Racing:masterfrom
Conversation
|
Seems like it's the right way to do it from Huub's suggestion. I assume you've tested it on your instance? |
|
There is something I couldn't figure out yet: Before cf524f0, when I tried to register a new bag, the API server answers with a status code 500. This is caused by a violated SQL constraint, where Anyways, now it is tested and works on my stack. This is what happened on the server's side |
|
Seems like adding the comparison on One way to fix it is probably to update the code to always set it to false for new bags so that it isn't null anywhere |
|
But when doing this (avoiding |
Fixes the worker's behavior to register trashed bags that are still available in a store.
Uses the solution @hfchendrikx has stated in this comment.
closes #1