Open filipefurtad0 opened 2 years ago
I've queried staging-UK and found no other enterprises with missing country info on the respective address with:
SELECT id, name from enterprises where address_id = (select id from spree_addresses where country_id IS NULL);
I'll have a look in Metabase to see if this an issue in production currently.
I ran
select * from enterprises, spree_addresses where enterprises.address_id = spree_addresses.id and spree_addresses.country_id IS NULL
in prod-fr, and 0 rows returned.
Description
An enterprise with an empty country info was found during release testing; This breaks the UI and has potential to become a serious issue if occurring in production.
Seems related with this bugsnag error, from production (AU):
https://app.bugsnag.com/yaycode/openfoodnetwork-aus/errors/6229aac74662e0000932c5d7
Expected Behavior
Addresses associated with enterprises must have country info.
Actual Behaviour
One address associated with one enterprise was found to have missing country info (staging-UK).
Steps to Reproduce
Could not reproduce this through the UI, so:
address_id
country
as NULL, withUPDATE spree_addresses SET country_id = NULL where id = <>
;Animated Gif/Screenshot
Workaround
Manually setting it in the UI.
Severity
If really verified in production will probably disrupt quite a lot of things... Would make up for an s2 at least.
Your Environment
Possible Fix