Open RachelChua opened 1 year ago
This is caused by not being able to add nurse (issue #4030) and not caused by list command. Thus, it is a duplicate of unable to add nurse issue.
[The team marked this bug as a duplicate of the following bug]
Unable to add nurse
The current state of the contact book contains 3 instances of Jason with different surnames as shown below which are displayed via:
find jason
Following the exact instructions specified in the UG for adding a new nurse to the contact book:
Steps to replicate:
- input the command
add c/N n/Jason p/98723432 e/jason@example.com g/M a/Blk 855 Woodlands Street 83, Singapore 730855, block 123, #01-01 t/asthma ud/2022-11-11
- Upon pressing the enter key,
As a user of the application I will not be able to add a nurse to the application which disrupts my usage drastically.
[original: nus-cs2103-AY2223S1/pe-interim#3978] [original labels: type.FunctionalityBug severity.High]
[This is the team's response to the above 'original' bug]
The team has found the cause of this bug which is the removal of a critical else clause which checks if the user wants to add a nurse or a patient, and returns either a nurse or a patient respectively. Please refer to lines 94-99 of this commit.
Due to this bug, several other features like the list command were affected as seen in issue #3816. It can be shown that the bug in issue #3816 and this are caused by the same lines of code in the above commit, and therefore we have marked #3816 as a duplicate. #3412, #5595 and #4445 are also clearly the same issue and hence are marked as duplicates.
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]
Team chose [severity.High
]
Originally [severity.Low
]
Reason for disagreement: [replace this with your explanation]
I added the nurse, Lily by the add command. But with list for nurse it did not appear, due to the fact that Lily was added as a patient rather than a nurse. Hence, making the previous issue regarding this more severe.