Fix search limits when ES search isn't enabled globally
What does this MR do?
When we have Global search enabled only for a few projects / namespaces we ignore terms and characters limits for non ES projects.
This MR fixes the original limit implementation for #31074 (closed).
Screenshots
Does this MR meet the acceptance criteria?
Conformity
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Edited by 🤖 GitLab Bot 🤖