load_facet in browse lists should not proceed if the CSV file is empty #4724
Labels
bug 🐛
The application does not work as expected because of a defect
maintenance
Ticket related to maintenance that needs to be done
What maintenance needs to be done?
The
load_facet
method in the BrowseLists module should check to make sure that the CSV is a reasonable size before it does its work.Level of urgency
Why is this maintenance needed?
This way, if the previous task has failed and produces an empty CSV, we do not end up with a completely empty browse list.
Currently, we can experience the following situation:
browse:name_titles
rake task/tmp/alma_orangelight_name_titles.csv
file to be totally emptyload_facet
doesn't check the file size, and happilyTRUNCATE
s the entire tableload_facet
cannot add any data back into the tableAcceptance criteria
load_facet
does notTRUNCATE
the current data if the relevant csv file is emptyload_facet
does notTRUNCATE
the current data if the relevant csv file is much smaller than it should beThe text was updated successfully, but these errors were encountered: