Open
Description
Hi,
I have a piece of code that uses get_refs
with a prefix filter
argument. I observed the results and then I put in filter_contains
a character that I can see exists in all the refs returned from the first call to get_refs
. The call with the filter_contains
returns 0 refs.
refs = self._connection.clients_v5_1.get_git_client().get_refs(repository_id = repo_id,
project = project_id,
filter = prefix_filter,
peel_tags = True,
include_statuses = True,
latest_statuses_only = True,
top = 100,
continuation_token = continuation_token)
In this example, all relevant ref name
field contain the character 'V'. The call:
refs = self._connection.clients_v5_1.get_git_client().get_refs(repository_id = repo_id,
project = project_id,
filter = prefix_filter,
peel_tags = True,
include_statuses = True,
latest_statuses_only = True,
top = 100,
continuation_token = continuation_token,
filter_contains = "V")
results in refs
containing 0 results, and the call returns almost immediately, as opposed to taking several seconds in the first call.
Thanks.