Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
If user clicks on search without entering a term, do nothing #329
@ZFIN and @kkarra pointed out that when you search for an empty string OR you search for the default value (e.g. "fgf8a" in zfinmine), the search returns the entire index. This takes a long time and sometimes times out.
In the case of ZFIN mine, the example value is fgf8a, so when @ZFIN searched for that value the entire search index was returned. The code thought the user has accidentally pressed enter without entering a value (because the default value == the typed in value).
In other mines the example is something you would not search for so this hasn't been a problem in the past, e.g.: