Skip to content

search: add annotation to VisitField

Administrator requested to merge sh/add_annotation_to_visitField into master

Created by: stefanhengl

Relates to #12476

With this PR we can use annotation.Range when calling VisitField to extract the glob pattern from the original query string.

Background

To enable alertForOverRepoLimit for globbing, we need to access the patterns of all repo: filters. This is already implemented for regex, but it is not that easy for glob patterns because we don't store them after converting them from glob to regex. To retrieve the patterns, we could either store the original glob pattern in the annotation or use annotation.Range to extract them from the query string. Either way, it would we great to have access to annotations in VisitField.

Merge request reports

Loading