nus-cs2103-AY2324S1 / pe-dev-response

0 stars 0 forks source link

Customer ID did not reset #4310

Open nus-se-script opened 7 months ago

nus-se-script commented 7 months ago

Steps to reproduce:

  1. Add several customer and orders (in my case 3 customers)
  2. clear the database
  3. add new customer

Expected Result

Customer id of the new customer is 1

Actual Result

Customer id of the new customer is 4

Visual Proof

Screenshot 2023-11-17 at 16.35.05.png

Environment/System

Java: Java 11.0.19 Azul JDK11 Chip: Apple M2 Pro Operating System: MacOS Ventura 13.6


[original: nus-cs2103-AY2324S1/pe-interim#3295] [original labels: severity.Low type.FeatureFlaw]

juliusgambe commented 7 months ago

Team's Response

According to the UG, the ID is guranteed to be unique but not be consecutive and start from 1.

Screenshot 2023-11-19 at 11.31.45 PM.png

Our planned enhancements states that the ID generation is not consistent and may skip a few numbers, which you have observed, and we want to improve by ensuring that new deliveries or customers will have a more consistent ID generation.

Screenshot 2023-11-19 at 11.27.51 PM.png

Duplicate status (if any):

--