Skip to content

Find command can lead to misleading results if user makes a typo. #5

@potatodudedude

Description

@potatodudedude

Currently find command allows for non-alphabetical symbols as arguments.
If a user makes a typo when using find nurse of patient or find patient of nurse, such as find nurse of pateint 1, it will taken as a find command with keyword argument of nurse of pateint 1, which will return an empty list.

image.png

This could cause the user to not notice their typo and think that patient 1 has no nurses regardless of if that's the case.

In addition, this makes it more difficult for the app to tell the user if they've made a formatting/input error when using find patient of nurse or find nurse of patient commands, since a wrong typo/format issue can be misinterpreted as a search keyword.

Some suggestions:
Perhaps you could try making command words joined together like findpatientofnurse or find_patient_of_nurse, or make use of the exiting prefix system, something like find n/KEYWORD, find nurse/PATIENT_INDEX, find patient/NURSE_INDEX

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions