Let's say, we have a problem with name and alias both set to 'a'.
If we want to add the same problem to a contest, we need to find it in the search box which only emits update-search-result-problems if searchType has at least (activation-threshold) 2 letters.
As @pabo99 mentioned, the two possible solutions are:
Add validation to all forms so that at least 2 characters are required. In this case, it will be necessary to run a query in production to see if there is currently any item that meets this criterion (else we can't find that problem on searching).
Let's say, we have a problem with name and alias both set to
'a'
.If we want to add the same problem to a contest, we need to find it in the
search box
which only emitsupdate-search-result-problems
ifsearchType
has at least (activation-threshold
) 2 letters.So, we can't add the problem to the contest.
Expected Behavior
to reproduce this bug:
a
.search
triggers if there are at least two characters.