microsoft / microsoft/azure-devops-python-api

release_ids_filter returns zero responses

未关闭
#318 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
684
派生
218
平均合并
8 天 10 小时
30 天内合并 PR
1

描述

Running the below request:

releaseid_split='1,2,3'

def approvers(self):

return self._release_client.get_approvals(project=_project,release_ids_filter=releaseid_split)

Where I am passing in the release ids the results are always null in the above method call on the requests class unless blank data is sent through.

Running this via a request you get data back data as I would expect:
requests.get(f'https://vsrm.dev.azure.com/{ORG}/'+_project+'/_apis/release/approvals?api-version=5.1&releaseIdsFilter='+releaseid_split, auth=('', TOKEN)).json()

The same response just via a different means returns data as expected with the correct release data.

Is there something I am missing?

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 _release_client.get_approvals 开始,将其 release_ids_filter 请求与 issue 中所示的直接 requests.get 调用进行比较。使用 release ID 1,2,3 以及空输入分别重现这两个调用,然后验证 client 返回的 release approval 数据与直接请求相同。

由索引模型根据 Issue 内容生成。

评估

技术栈
azure, python
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。