Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foods in Expired and Expiring Lists are sorted by Description if same Expiry #181

Conversation

bchenghi
Copy link
Collaborator

@bchenghi bchenghi commented Nov 4, 2020

Previously, food items with the same expiry dates will change their ordering in the expired and expiring lists after editing their fields.

Can be reproduced by having two food items with the same expiry dates. Edit the field of the food item lower on the list while still maintaining same expiry dates. The one that was below will now be on top.

Now the lists are sorted by description then expiry (i.e food items with descriptions "a" and "b" with same expiry dates will always be ordered "a" then "b" even after editing)

@bchenghi bchenghi added the type.Bug A bug label Nov 4, 2020
@bchenghi bchenghi self-assigned this Nov 4, 2020
@bchenghi bchenghi added this to the v1.4 milestone Nov 4, 2020
@bchenghi bchenghi added this to To Do in Week 12 via automation Nov 4, 2020
@bchenghi bchenghi moved this from To Do to In Progress (Cheng Hin) in Week 12 Nov 4, 2020
Copy link
Collaborator

@jonahtanjz jonahtanjz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jonahtanjz jonahtanjz merged commit 20ce29b into AY2021S1-CS2103T-F13-4:master Nov 5, 2020
Week 12 automation moved this from In Progress (Cheng Hin) to Done Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Week 12
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants