alphagov/design-principles — pull request #48 by jamiecobbett (2013-07-19 11:02:09+00:00)
Title: Handle the query string being empty

We were returning an error becuase we expected the Rummager response to be a hash, but it was an array. This is because gds-api-adapters was returning the equivalent of 0 results if the query was blank, but didn't know about the newer response format.

design-principles has been broken in this respect since:
19d4ec72279f73138a77e092d278d49dbda6803f

Although it doesn't explicitly tell the user why they've got no results, it should make sense that blank query equals no results, so the UX feels fine to me.