arjun2598 / pe

0 stars 0 forks source link

Find command using month paid pattern should be separated for month and year #4

Closed arjun2598 closed 1 week ago

arjun2598 commented 1 week ago

Description: For the find command, when trying to match a month, e.g. 02, since years like 2024 have this pattern within them, anyone who has paid for a month in the year 2024 is returned as part of the search list. However, it is likely that the user only wanted those who paid in the second month of the year, hence could have been more suitable to return only those who paid for month 02.

Steps to reproduce:

  1. Make sure there are students with months paid 2024-01, 2024-03 or other months excluding 02.
  2. Also ensure there are some students with 2024-02 as one of the months paid.
  3. Execute find m/02
  4. Note that not only those who paid for month 2024-02 are shown.

Screenshot:

Before:

image.png

After:

image.png

Perhaps letting the user know about this behaviour in the user guide could have been better so they are able to specify more exactly their required search.