microsoft / microsoft/azure-devops-python-api
"filter_contains" argument causes get_refs to find no matches
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 684
- Forks
- 218
- Ø Merge
- 8 T. 10 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie beim Einstiegspunkt get_refs des Python-Clients und prüfen Sie, wie die Argumente filter und filter_contains gesendet werden. Reproduzieren Sie den gemeldeten Fall mit refs, die 'V' enthalten, und überprüfen Sie anschließend, dass filter_contains diese passenden refs statt eines leeren Ergebnisses zurückgibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100