cwms/projects/projects.py::get_project uses the wrong API version for retrieval
評估
研究方向
從 cwms/projects/projects.py 開始,檢查專案擷取路徑,然後將其 API 版本與連結的 cwms-data-api 程式碼中的 ProjectController 參照進行比較。在進行任何變更之前查看 pull request #319;完成的標準是專案擷取不再要求不受支援的版本,且回報的格式錯誤已獲得解決。
由索引模型根據 Issue 內容生成。
描述
projects.py uses the default API version for retrieval, and causes the following error:
{"message":"Formatting error:No Format for this content-type and data-type : (application/json;version=2, cwms.cda.data.dto.project.Project)", "incidentIdentifier":"bf796eca-d668-4e14-923c-db78845580c0", "source":"Parser","details":{}}
After looking at CDA, it's expecting API version 1
https://github.com/USACE/cwms-data-api/blob/develop/cwms-data-api/src/main/java/cwms/cda/api/ProjectController.java#L159
https://github.com/USACE/cwms-data-api/blob/develop/cwms-data-api/src/main/java/cwms/cda/api/ProjectController.java#L183-L187
We can either update CDA to support a new version, or update projects.py to use the correct version.
- 主要語言
- Python
- 星號
- 16
- 分支
- 11
- 平均合併
- 7 小時 35 分鐘
- 30 天內合併 PR
- 3
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
HydrologicEngineeringCenter/cwms-python 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 4/5 3-5 天 新手友好度 25/100
-
enhancement
難度 4/5 3-5 天 新手友好度 48/100
-
難度 5/5 一週以上 新手友好度 28/100
HydrologicEngineeringCenter/cwms-python#299 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
HydrologicEngineeringCenter/cwms-python#288 · 1 則留言 ·
查看 HydrologicEngineeringCenter/cwms-python 的全部 Issue
相似的 Issue
-
[Bug]: graphify query loads every language extractor just for _file_stem (about 34 ms per call)可能已有人在做 @rohit-jsfreaky 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
Graphify-Labs/graphify#5160 · 1 則留言 ·
維護者通常 2 天內回覆
-
Variable declared without a value suppresses ${VAR:-default} expansion可能已有人在做 @Omarinho12345 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 85/100
theskumar/python-dotenv#750 ·
維護者通常 12 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
-
Operations on a list[T] | None var throw when the value is None可能已有人在做 @masenf 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
reflex-dev/reflex#7826 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
UKGovernmentBEIS/control-arena#947 ·
維護者通常 1 天內回覆