-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Description:
The user guide states that editing a person's role causes existing links to be deleted, and presents a workaround for it:
However, when a person's role is edited, the link will still exist in the other party's data. For example, if there is a link between Alice and Bob, editing Alice's role will only remove the link in Alice's data. Bob's data will still display Alice's NRIC under patients/caregivers.
This is problematic as there is no way to unlink Alice from Bob's data. Using deletelink will display that the link does not exist.
Steps to reproduce:
Enter the following commands:
add n/Alex Y nric/S6283947C p/88888888 e/Alex@example.com a/311, Clementi Ave 2, #02-25 t/backPain t/diabetic role/patient
add n/Bernice nric/S6382947A p/98765432 e/bernice@example.com a/311, Clementi Ave 2, #02-25 t/backPain t/diabetic role/caregiver
link patient/S6283947C caregiver/S6382947A
edit S6283947C role/caregiver
deletelink patient/S6283947C caregiver/S6382947A
The deletelink command will output the following error message:
This link does not exist in CareLink
However, running find n/Bernice will still display the NRIC of Alex under her patients. There is no way to delete this link to Alex in Bernice's data.
