platformplatform / PlatformPlatform

Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
253 stars 26 forks source link

Download gravatar images to blob storage to prevent browser warnings #616

Closed tjementum closed 2 weeks ago

tjementum commented 2 weeks ago

Summary & Motivation

Add logic to download Gravatar images to blob storage, addressing browser console warnings about "Tracking Prevention blocked" when loading assets from external sites. The Gravatar image is downloaded when a user is created and refreshed each time the user logs in.

To support this functionality, the logic for saving an avatar to blob storage has been refactored into a new, shared AvatarUpdater class. Additionally, a new GravatarClient has been created in a new Infrastructure namespace. This update demonstrates a method for extracting shared logic within a vertical-sliced architecture while adhering to the single responsibility principle.

Checklist

linear[bot] commented 2 weeks ago

PP-235 Saving Gravatars to blob storage to avoid warnings about tracking prevention

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
58.8% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud