Skip to content
Snippets Groups Projects

search: move compiled description pattern regex to a field on `RepoSearchJob`

Merged Warren Gifford requested to merge tl/compile-desc-pat-regex-early-2 into main

Created by: tbliu98

This PR adds DescriptionPatterns as a field of type []*regexp.Regexp on RepoSearchJob. Patterns passed to repo:has.description will be compiled to regex during job construction and populated in this field to avoid compiling regex during job execution.

This field is not yet used. Description pattern regex compilation will be added to the job construction step in the next PR when description match highlighting is added.

Test plan

Unit tests pass

Merge request reports

Approval is optional

Merged by avatar (Apr 22, 2025 5:47pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading