Check project ID when doing sync
還沒有人認領這個 Issue。
評估
研究方向
先追蹤專案的 pull/push 流程,以及專案中繼資料目前如何儲存專案名稱。檢視 project-info API 呼叫和 issue #190,接著新增對以 ID 為基礎的查找、重新命名或移轉處理、404 刪除,以及 403 權限錯誤的檢查,同時保留沒有 ID 的中繼資料之既有行為。完成時應包含 issue 中描述的自動化測試。
由索引模型根據 Issue 內容生成。
描述
When doing project pull/push, we should check project info based on project's ID instead of project name, to make sure that we're do the right thing even if something happened to the project:
- project got renamed (or project was transferred to other workspace and we still have access to it) - we sync as usual, using the new project name when doing upload/download API calls
- project was deleted - if project info returns 404, we know it got deleted
- project access permission was removed from our user - if project info returns 403, we know there's permission problem
Note: some projects created/updated with an old version of MM plugin will not have project ID stored in the metadata - it would be good if we could handle those correctly as well (just hope that the project was not renamed / transferred).
Once #190 is implemented, it should be possible to add auto tests that will exercise that check.
- 主要語言
- Python
- 星號
- 23
- 分支
- 12
- 平均合併
- 2 天 13 小時
- 30 天內合併 PR
- 7
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
MerginMaps/python-api-client 的其他 Issue
-
Vacuuming 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
MerginMaps/python-api-client#320 ·
-
難度 5/5 一週以上 新手友好度 30/100
MerginMaps/python-api-client#270 ·
-
enhancement
難度 5/5 一週以上 新手友好度 25/100
MerginMaps/python-api-client#257 · 3 則留言 ·
-
enhancement
難度 4/5 3-5 天 新手友好度 25/100
MerginMaps/python-api-client#254 · 1 則留言 ·
-
enhancement
難度 5/5 一週以上 新手友好度 25/100
MerginMaps/python-api-client#245 ·
查看 MerginMaps/python-api-client 的全部 Issue
相似的 Issue
-
bug confirmed issue
難度 2/5 1-3 小時 新手友好度 75/100
open-webui/open-webui#30750 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
enhancement
難度 2/5 1-3 小時 新手友好度 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
-
good first issue
難度 1/5 1 小時以內 新手友好度 90/100