|
1 |
Create a recipe with a ingredient successfully |
a recipe with correct data and an ingredient with quantity greater than zero, mass or volume unit and a product |
the recipe and ingredient creation processes are triggered |
the recipe will be created in the table recipes AND the ingredient will be created in the table ingredients with the recipe_id linked to the recipe that has just been created. |
|
2 |
Don't create a recipe with ingredients because of lack of product, quantity or uom |
a recipe WITHOUT product |
the recipe and ingredient creation processes are triggered |
the recipe WON'T be created in the table recipes NOR will be created in table ingredients. |
|
3 |
Don't create a recipe because of quantity is less than or equal to zero |
a recipe with one or more ingredients, an quantity is less than or equal to zero |
the recipe an ingredient creation processes are triggered |
the recipe WON'T be created in the table recipes NOR will be created in table ingredients. |
|
4 |
Don't create a recipe because of uom is not a mass or volume unit |
a recipe with one or more ingredients with uom which is not a mass or volume unit |
the recipe an ingredient creation processes are triggered |
the recipe WON'T be created in the table recipes NOR will be created in table ingredients. |
|
5 |
Don't create a recipe because of data duplication |
a recipe with ingredients and our database has one ingredient with the SAME product and the SAME comment |
the recipe an ingredient creation processes are triggered |
the recipe WON'T be created in the table recipes NOR will be created in table ingredients. |
|
6 |
Create a recipe with ingredients correctly with comments |
a recipe with ingredients and comments correctly |
the recipe an ingredient creation processes are triggered |
the recipe will be created in the table recipes AND if the comment EXISTS in the description column of the table recipe_comments, get the comment ID, set to comment_id of the entity ingredients AND an ingredient entity with comment_id will be created in table ingredients ELSE a new entity comment will be created in the table recipe_comments, then get the comment ID, set to comment_id of the entity ingredients AND an ingredient entity with comment_id will be created in table ingredients . |
As a User
I want to create and save a recipe with ingredients
So that I can easily access and prepare my favorite dishes with more information
Definition Of Ready (DoR)
Scope
idPRIMARYINTEGERNOT NULLAUTO INCREMENT1recipe_idFOREIGNINTEGERNOT NULL31quantityDECIMAL(10, 2)NOT NULL99999999.99100.00uom_idFOREIGNINTEGERNOT NULLunit_of_measurement1comment_idFOREIGNINTEGERingredient_comments2idPRIMARYINTEGERNOT NULLAUTO INCREMENT1descriptionUNIQUETEXTNOT NULL30a temperatura ambienteOut of scope
Wireframes
Acceptance Criteria
Keep it in mind the same AC for the recipe creation process
Definition of Done (DoD)