code-corps / code-corps/code-corps-api
Add fallback for GitHub avatars when async processing
未關閉
needs estimate
- 主要語言
- Elixir
- 星號
- 234
- 分支
- 82
- PR 合併指標
- 30 天內沒有已合併 PR
描述
# Problem
For the fallback:
- Rewrites the `cloudinary_image/5` fn signature to accept the `User`'s `github_avatar_url` in addition to the `cloudinary_public_id`
- In `CloudinaryUrl.for/5`, pattern match on the presence of a `github_avatar_url` in order to instead use the GitHub avatar URL as a fallback (with the right sizing options)
- Test the `ImagePresenter` and `CloudinaryUrl` modules accordingly
貢獻指南
研究方向
從 cloudinary_image/5 函式、CloudinaryUrl.for/5,以及 issue 中提到的 ImagePresenter 和 CloudinaryUrl 測試開始。追蹤在非同步處理期間如何傳遞 github_avatar_url 和 cloudinary_public_id,然後更新相關測試,以驗證 GitHub 頭像 fallback 及其尺寸選項。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- elixir
- 領域
- backend
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100