microsoft / microsoft/azure-devops-python-api
"filter_contains" argument causes get_refs to find no matches
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 684
- 派生
- 218
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 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.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Python 客户端的 get_refs 入口点开始,检查 filter 和 filter_contains 参数是如何发送的。使用包含 'V' 的 refs 重现报告中的情况,然后验证 filter_contains 返回这些匹配的 refs,而不是空结果。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api, devops
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100