Wxy2003-xy / pe

0 stars 0 forks source link

Edited name is not reflected in the Wedding page #4

Open Wxy2003-xy opened 2 weeks ago

Wxy2003-xy commented 2 weeks ago

Step to reproduce: delete addressbook.json start app assign person 2 to the first wedding as a partner using command asw 2 w/Casey's Wedding p1/ edit the name of person 2 to 'a' using commad edit 2 n/a The name in the weddings partner 1 field is not updated accordingly, still displaying a name that is no longer in the address book.

0B9BCFFD-4E08-4AC4-9CF0-86DC12AFB9F6.jpeg

nus-se-bot commented 1 week ago

Team's Response

This bug is also caused by not setting the editedPerson as the new partner/guest in the previous Person's Wedding objects in the execute() function of the EditCommand.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

Previously edited person become new contact upon restart

Step to reproduce: Delete addressbook.json Start app enter command edit 1 n/aaa exit

restart app previously edited person 1 becomes a new copy appear at the bottom with name before editing

F2DB2ED5-A8DC-4F17-974C-07BC4ED473F6.jpeg

1A6002F3-5EF7-43A9-BCA3-10BEC2764390.jpeg

This result in duplicate of contacts that the user never intends to add, editing contact will result in the growth of total contact number.


[original: nus-cs2103-AY2425S1/pe-interim#848] [original labels: severity.High type.FunctionalityBug]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

No details provided by team.

Items for the Tester to Verify

:question: Issue duplicate status

Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)

Reason for disagreement: [replace this with your explanation]