On the course history page, you are currently unable to search for 'CS156' and are not given any error message. We would like to change it so that you are able to search for 'CS156' and results for '156' would show up. This is so that users that are used to putting 'CS' or any department name in front of the course number are not set back in the search.
**Although the example I am using in this issue is for 'CS', we expect this to work for all departments and any non-digit characters that the user inputs before the course number.
Current output when 'CS156' is searched:
Expected output when 'CS156' is searched:
Acceptance Criteria
[ ] on the course history page, when a user searches for 'CS156', the result is the same as if you searched '156'.
Implementation Todos
Backend:
[ ] Right before the API is called, add a check to make sure the input matches the expected format (digits only) and if it doesn't, parse through the input and truncate it to be in the expected format.
Testing:
[ ] Back end tests pass and there is adequate coverage
Have you updated the title?
As a...
user
I can...
search for 'CS156' instead of just '156'
So that...
it's easier to search for courses.
Discussion
On the course history page, you are currently unable to search for 'CS156' and are not given any error message. We would like to change it so that you are able to search for 'CS156' and results for '156' would show up. This is so that users that are used to putting 'CS' or any department name in front of the course number are not set back in the search.
**Although the example I am using in this issue is for 'CS', we expect this to work for all departments and any non-digit characters that the user inputs before the course number.
Current output when 'CS156' is searched:
Expected output when 'CS156' is searched:
Acceptance Criteria
Implementation Todos
Backend:
Testing: