Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did not handle invalid input for fields in filter #5

Open
potaotototo opened this issue Nov 15, 2024 · 1 comment
Open

Did not handle invalid input for fields in filter #5

potaotototo opened this issue Nov 15, 2024 · 1 comment

Comments

@potaotototo
Copy link
Owner

potaotototo commented Nov 15, 2024

Problem

When user input an invalid field for filter, there isn't any error messages warning the user.

Steps to reproduce

filter m/m

Expected

Error: the module m does not exist.

Actual

0 persons listed!

Screenshot

Screenshot 2024-11-15 at 4.46.49 PM.png

Potential improvement

add error message

@nus-pe-bot
Copy link

nus-pe-bot commented Nov 18, 2024

Team's Response

The example you gave was filter a person with module m, and this did not match any existing records, the system correctly indicated that 0 person listed!. This is a valid outcome as the filter simply narrow down the list based on the given input, regardless of whether the input matches existing data.

Items for the Tester to Verify

❓ Issue response

Team chose [response.Rejected]

  • I disagree

Reason for disagreement: 0 persons listed! is not a sufficiently specific error message especially given that your filter feature implements an AND search with multiple possible fields:

Screenshot 2024-11-19 at 4.24.35 PM.png

If the user wants to filter with multiple fields but enters an invalid field e.g. Emath not Mathematics, they can mistakenly believe that there is no such student, while in reality it is 0 persons listed! because no such module / tag / phone number / name exists (could be caused by a minor typo on the user's end e.g. Jin Xiang instead of Jing Xiang).

Screenshot 2024-11-19 at 4.28.38 PM.png

Furthermore, since your find does not support finding by module, it is better if you give specific error message as to why there isn't any match. I would like to believe this should be more of an out of scope rather than a reject.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants