Open raydenlim opened 10 months ago
We believe that this is a duplicate as once we fix issue #1406, this issue will be fixed too.
[The team marked this bug as a duplicate of the following bug]
Identical Person in Group
From my understanding, you guys check index using email. However, I was still able to add the same email into a group:
You can try replicating this bug by:
- editing the original AlexYeoh's email to something else
- Create a new person with alexyeoh's old email
- Join said person to the same tut group.
[original: nus-cs2103-AY2324S1/pe-interim#1167] [original labels: type.FeatureFlaw severity.Medium]
[This is the team's response to the above 'original' bug]
It is a functionality bug as this bug should not be allowed, but it worked in his/her case. We labelled it a low severity as we believe that it is not common for users to do the action(what the tester tested) or change their email(we intended email changes in the case of typos, not for deliberate changes).
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: Similar to the other bugs the group has deemed as duplicated...
From my understanding... Although the bugs may allude to the same issue of edit
not properly updating a person, the fundamental logic of these bugs are not the same.
Hence, they are NOT duplicated issues.
Moreover, as the edited person in the group is a Set[Person]
(see pic below)
Image of Group data fields:
Image of Person data fields:
The Set[Person]
is mutable, while Person fields are immutable, given private final
. The fix to these bugs regard mutable vs immutable objects.
After editing Alex Yeoh's email to
alex1@u.nus.edu
. While the Person List did update, the information on the Group List did not update properly.Person List:
GroupList:
This is perhaps due to a mis-reference in the person object in your group list.
The expected integrated test would be that the email will be updated, since its the Student's unique ID.