bcgov / NRPTI

Natural Resources Public Transparency Initiative
Apache License 2.0
5 stars 15 forks source link

NRCED displays incorrect information on the number of records displayed when no records are found #1213

Closed malafry closed 3 months ago

malafry commented 3 months ago

Describe the Bug When using NRCED, and when using the keyword search function, the returned search results do not always display the correct information about how many records are displayed (e.g., "No records found" versus "Showing # - # of # results").

Expected Behaviour When I use the keyword search, and the search results return no records, then I expect a statement: "No records found."

Actual Behaviour When I use the keyword search, and the search results return no records, then I see a statement: "Showing 1 – 1 of 1 results".

Implications A recent inquiry from a business offering search and registry services identified this problem with the keyword search. Specifically, their search returned no records and it incorrectly displayed: "Showing 1 – 1 of 1 results". The business interpreted the information as if a hidden record existed in the database, which impacted their ability to provide a reliable service to their client.

Steps To Reproduce Steps to reproduce the behaviour:

  1. Go to https://nrced.gov.bc.ca/
  2. Click on FIND RECORDS
  3. Click on Keyword Search and type: "123456" (including quotes)
  4. See the following error:

Image

Verification of correct behavior:

  1. Go to https://nrpti-f00029-prod.apps.silver.devops.gov.bc.ca/
  2. Click on All Records (left navigation)
  3. Click on Keyword Search and type: "123456" (including quotes)
  4. See the following correct/expected behaviour:

Image