You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sometimes brand names are slightly different from the correct form or the name-string is combined with a comma and additional information. In that case, a new brand or a new corporation gets created which is not connected/related to any corporation or brand.
Expected behavior
We should use the same logic as we already use for the is_big_ten feedback, that we search for quite similar brands or corporations if we don't get a result right away.
I would say first try should be a clear get like Brand.objecs.get(name="coca cola") if that throws an error, we can try to find it like Brand.objects.filter(name__trigram_similar="coca cola") and if we still don't get a good result, we still can create a new brand.
The text was updated successfully, but these errors were encountered:
Describe the bug
Sometimes brand names are slightly different from the correct form or the name-string is combined with a comma and additional information. In that case, a new brand or a new corporation gets created which is not connected/related to any corporation or brand.
Expected behavior
We should use the same logic as we already use for the is_big_ten feedback, that we search for quite similar brands or corporations if we don't get a result right away.
I would say first try should be a clear get like Brand.objecs.get(name="coca cola") if that throws an error, we can try to find it like Brand.objects.filter(name__trigram_similar="coca cola") and if we still don't get a good result, we still can create a new brand.
The text was updated successfully, but these errors were encountered: