microsoft / microsoft/azure-devops-python-api

"filter_contains" argument causes get_refs to find no matches

オープン
#307 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

question
主要言語
Python
スター
684
フォーク
218
平均マージ
8日 10時間
マージ済み PR(30日)
1

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Python クライアントの get_refs エントリーポイントから開始し、filter 引数と filter_contains 引数がどのように送信されるかを確認します。'V' を含む refs で報告されたケースを再現し、その後、filter_contains が空の結果ではなく一致する refs を返すことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, devops
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。