Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Order searching is not robust #862
We're seeing, fairly often, failures in showing our live order lists - particularly when searching (e.g. on a customer name)
One gets two red error alerts ('an unknown error has occurred') and an empty list back. Must re-load page to fix, but problem is reproduce-able with the same search repeated (e.g. for name 'cook'), so it's not some temporary network glitch or whatever.
In the console, as per Discord:
What would cause this - when loading some order views (well, this causes the order views to fail actually) -
... I have had a poke around, worked out the views would load ok without Billing Business Name in there. The only weird thing I could see was a couple of recent addresses where the Billing Business Name was set to (Null) rather than just being (as is normal, it seems) - simply empty. Any idea how a null could get in there??
I went in to the orders (the order details page loads fine) - and re-saved the addresses with just a space character in the for the business name, and now the views load up ok again. Bit of an odd one - not sure how Null would get in there? But also Commerce should probably be ok with both null and empty strings, or have a constraint on the table to sop nulls getting in there in the first place, if they are not ok.
Note, though, that is not the only reason we seem to get these errors. We see them at other times too, and without removing all the columns and then adding them back one by one, it's impossible to see what the issue actually is - so, if nothing else, the error handling/reporting side of things could be much improved!
Steps to reproduce