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

Add fallback for GitHub avatars when async processing

Offen
#1,017 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
needs estimate
Vorherrschende Sprache
Elixir
Sterne
234
Forks
82
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

# 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.