Skip to content

Zoekt search times out with certain special characters

What does this MR do and why?

Remove the no_abusive_pipes from the AbuseDetection class validation. Created a new method abusive_pipes? which will be called when the search_type is zoekt regex or non-zoekt. The reason to do this is because we don't want to validate the no_abusive_pipes if the search type is zoekt with exact mode.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  • Make sure zoekt is setup for a namespace
  • Commit a code something like this foo|foo|foo|foo|foo|foo|foo
  • Search for foo|foo|foo|foo|foo|foo|foo in the zoekt exact mode
  • You should be able to see the search result

Related to #424435 (closed)

Edited by Ravi Kumar

Merge request reports

Loading