Description
Jonathan Druart
2018-06-27 18:28:51 UTC
Created attachment 76533 [details] [review] Bug 21011: Search for items with not defined homebranch and/or holdingbranch From bug 5789: scripts can fail if items.homebranch and/or items.holdingbranch is not defined This script will help people catching these migration issues. Test plan: Update your items table to set some homebranch or holdingbranch to NULL Run this script It will display the different items with not defined values in these fields. Created attachment 76536 [details] [review] Bug 21011: Search for items with not defined homebranch and/or holdingbranch From bug 5789: scripts can fail if items.homebranch and/or items.holdingbranch is not defined This script will help people catching these migration issues. Test plan: Update your items table to set some homebranch or holdingbranch to NULL Run this script It will display the different items with not defined values in these fields. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Created attachment 76537 [details] [review] Bug 21011: (follow-up) Fix pod, fix missing homebranch condition, change mode to executable Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Some help with -h would be nice, but not blocker. Created attachment 77384 [details] [review] Bug 21011: Search for items with not defined homebranch and/or holdingbranch From bug 5789: scripts can fail if items.homebranch and/or items.holdingbranch is not defined This script will help people catching these migration issues. Test plan: Update your items table to set some homebranch or holdingbranch to NULL Run this script It will display the different items with not defined values in these fields. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 77385 [details] [review] Bug 21011: (follow-up) Fix pod, fix missing homebranch condition, change mode to executable Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> (In reply to Katrin Fischer from comment #4) > Some help with -h would be nice, but not blocker. Yes, the idea is to collect ideas first. Then it will certainly rewritten depending on the needs we found. Idea: no itemtype set. :) (In reply to Katrin Fischer from comment #8) > Idea: no itemtype set. :) I have opened bug 21150 for item types. Awesome work all! Pushed to master for 18.11 Enhancement pushed to 18.05.x for 18.05.03. This only introduces a new command line script which may be helpful to system administrators. As such, with zero outwardly facing changes, I felt it both safe and helpful to backport. Also pushed to 17.11.x for 17.11.10 |