Closed dleard closed 1 year ago
@pbastia The bug occurred when a product was reported by selecting it from the dropdown. So to test this fix:
111419 - Food Crops Grown Under Cover
has products associated to it that can be entered@dleard I went through this, and the product_name field is empty in MB...maybe we can have a look together to see if I did something wrong
oops, looks like the deployment got stuck on a happo ci failure in shipit, so the fix didn't make it to dev. Deploying now
I can see the product name in metabase. Thank you @dleard !
I can see the product name in metabase. Thank you @dleard !
Many rows in the CIIP Production view in metabase are missing the
Product Name
field. This is because, when selecting a product as a reporter, the name is not saved to theform_result
and the CIIP Production view pulls the (non-existent) product name from thatform_result
data.We always have the
product_id
saved in theform_result
, so having the name saved there too is redundant. The fix here is:ciip_production
view to populate itsproduct_name
field by retrieving it from theproduct
table via theproduct_id
foreign keyProbability (1-5): 4 The view will have blank product_name fields for any products selected via the dropdown by the reporter
Effect (1-5): 2 There is a work-around in metabase that has been shared in CIIP Internal
Steps to reproduce the behaviour: