search: add alert for params that require commit or diff type
Created by: rvantonder
DO NOT REVIEw
Closes #12527.
Still thinking about how to raise this. It feels like something that should be part of validate.go
in the new parser, but returning an informative 'why' on error that is then translated to an alert. Existing parser could maybe be done in check
.