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 摘要。