nus-cs2113-AY2425S1 / pe-dev-response

0 stars 0 forks source link

duplicated entries with same name for cost and price plot #765

Open nus-pe-bot opened 18 hours ago

nus-pe-bot commented 18 hours ago

image.png

Visualize cost and price will show entries with the same name if they have different expiry date - however cost and price features only allow price set for all entries.

For large number of items, this plot could show up as clustered and redundant as we will see the same information multiple times. Maybe only show one entry for each item name?


[original: nus-cs2113-AY2425S1/pe-interim#757] [original labels: type.FeatureFlaw severity.Low]

cxc0418 commented 2 hours ago

Team's Response

Thank you for highlighting the issue. It is designed to be like this. Since there are possibilities whereby a user might edit the saved file (txt file) data, in such circumstances, cost and price features can be different for every entry. Thus, to prevent these kinds of circumstances (the user modifies entries with the same name and different expiration dates to different costs/prices, and we do not show entries with the same name and different expiration dates, there will be a lack of data in the visualization), it is our design to keep all entries with the same name but different expiry dates in our visualizer.

Duplicate status (if any):

--