code-corps / code-corps/code-corps-api

Add fallback for GitHub avatars when async processing

Aperta
#1,017 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
needs estimate
Lingua principale
Elixir
Stelle
234
Fork
82
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.