I encountered an issue while searching for jobs that have two parameters: an integer and a string. When performing a search using the string parameter, the results are accurate. However, no results are returned when searching using the integer parameter.
Additionally, the current test specifications only cover searches with the string parameter, not the integer parameter.
Nuts! Thanks for looking into the code and finding that scenario isn't tested. GoodJob uses Postgres fulltext search, which I'm not an expert in. Here's where the search happens:
I encountered an issue while searching for jobs that have two parameters: an integer and a string. When performing a search using the string parameter, the results are accurate. However, no results are returned when searching using the integer parameter.
Additionally, the current test specifications only cover searches with the string parameter, not the integer parameter.
https://github.com/bensheldon/good_job/blob/b0c9707b487652d69264cb145ec8ec9c2aa74263/spec/app/models/concerns/good_job/filterable_spec.rb#L21-L23
Screenshots: Accurate results when searching with a string query
Nothing when searching for an integer