fjborquez / azula

0 stars 0 forks source link

Get inventory Data #1

Closed Norbbs closed 2 months ago

Norbbs commented 5 months ago

As a User I want to get information about an inventory from the house So that I can manage the pantry and make decisions

Definition Of Ready (DoR)

Definition Observations
  • - [x]
The story meet the INVEST and SMART criteria
  • - [x]
Dependencies identified and resolved
  • - [x]
Written acceptance criteria with test scenarios, understood by the team and agreed upon
  • - [x]
The user story was understood and agreed upon in a refinement session with the dev team
  • - [x]
The team has an idea of how to make the demonstration of the finished story

Scope

  1. Get information from the following table inventory table:
Field Type Min Limit Example
quantity DECIMAL 0.01 99999999.99 5.00
unit UNIT OF MEASUREMENT - - Kg
brand BRAND - - Soprole
product BRAND - - Soprole
Purchase date YES - today Current date by default in DD-MM-YYYY format or can be empty
Expiration date NO today future date Date in DD-MM-YYYY format by default or empty

Wareframes

Image

Image

Out of scope

  1. Any other entity not related with product and inventory.
  2. Any other non-getting data flows.

Acceptance Criteria

AC GIVEN WHEN THEN
  • - [ ]
1 Get inventory by house id when there is available information a house id AND the status of this house is ACTIVE (is_active = 1) get inventory api endpoint is triggered a list of inventory information will be received as it showed in the scope section
  • - [ ]
2 Get error message when the house is NOT ACTIVE a house id AND the status of this house is ACTIVE (is_active = 0) get inventory api endpoint is triggered an error message the house is not active will be generated and an exception will be thrown
  • - [ ]
3 Get empty inventory by house id when there is no data a house id AND the status of this house is ACTIVE (is_active = 1) add product api endpoint is triggered an empty list of inventory information will be received.
  • - [ ]
4 Get quantity with the correct format in the inventory data a house id AND the status of this house is ACTIVE (is_active = 1) get inventory api endpoint is triggered a list of inventory information will be received with quantity as show as the table in the scope section.
  • - [ ]
5 Get brand in the inventory data by house id a house id AND the status of this house is ACTIVE (is_active = 1) get inventory api endpoint is triggered a list of inventory information will be received with brand as show as the table in the scope section.
  • - [ ]
6 Get product in the inventory data by house id a house id AND the status of this house is ACTIVE (is_active = 1) get inventory api endpoint is triggered a list of inventory information will be received with product as a combination of product product typeand product presentation as showed the table in the scope section.
  • - [ ]
7 Get purchase date with the correct format in the inventory data a house id AND the status of this house is ACTIVE (is_active = 1) get inventory api endpoint is triggered a list of inventory information will be received with purchase date with DD-MM-YYYY format as show as the table in the scope section.
  • - [ ]
8 Get expiration date with the correct format in the inventory data a house id AND the status of this house is ACTIVE (is_active = 1) get inventory api endpoint is triggered a list of inventory information will be received with expiration date with DD-MM-YYYY format as show as the table in the scope section.
  • - [ ]
8 Get null or empty expiration date in the inventory data a house id AND the status of this house is ACTIVE (is_active = 1) get inventory api endpoint is triggered a list of inventory information will be received with expiration date null or empty.

Definition of Done (DoD)

Definition Result
  • - [ ]
All acceptance criteria have been met
  • - [ ]
No significant or critical defects
  • - [ ]
Deskcheck ceremony has been made
  • - [ ]
Keep minimum test coverage of 80% over the necessary code and components
  • - [ ]
Technical documentation published
  • - [ ]
Spike, PoC or benchmarks findings documented