openculinary / frontend

The RecipeRadar Frontend is a recipe search and meal planning application
GNU Affero General Public License v3.0
13 stars 2 forks source link

Rename 'product' field within product database table #178

Closed jayaddison closed 3 years ago

jayaddison commented 3 years ago

Is your feature request related to a problem? Please describe. The product.product field represents the name of a product within the context of an ingredient description.

To put that another way, the abstract product tomato may appear variously as tomato or tomatoes in ingredient descriptions.

Currently this value is stored in a field called product in the products table, which leads to strange-looking code that refers to `product.product

Describe the solution you'd like This field should be renamed to name, since it is a local name for an abstract product.

This will require upstream changes to endpoints in the api service.