wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.7k stars 1.12k forks source link

Remove downloadSiteIcon #23832

Closed kean closed 4 days ago

kean commented 4 days ago

I'm working towards removing AlamofireImage. The previous downloadSiteIcon variants and uses have been completely replaced with SiteIconView, SiteIconViewModel, and ImageDownloader in all other places. This was the only remaining use case, but I'm not entirely sure why it's using downloadSiteIcon. My understanding is that it's a fallback for loading non-gravatar user avatars if that's still a thing. I think it's going to be safe to just load the image from the URL as is in this case.

To test:

I tested it by commenting out if let gravatar = AvatarURL(url: url) { line and letting the new code run.

Regression Notes

  1. Potential unintended areas of impact

  2. What I did to test those areas of impact (or what existing automated tests I relied on)

  3. What automated tests I added (or what prevented me from doing so)

PR submission checklist:

Testing checklist:

dangermattic commented 4 days ago
1 Warning
:warning: This PR is assigned to the milestone 25.5. The due date for this milestone has already passed.
Please assign it to a milestone with a later deadline or check whether the release for this milestone has already been finished.

Generated by :no_entry_sign: Danger

wpmobilebot commented 4 days ago
WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr23832-c2aeec8
Version25.4.2
Bundle IDorg.wordpress.alpha
Commitc2aeec8ce39395717b46145d9a4d917887010b4e
App Center BuildWPiOS - One-Offs #11080
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.
wpmobilebot commented 4 days ago
Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr23832-c2aeec8
Version25.4.2
Bundle IDcom.jetpack.alpha
Commitc2aeec8ce39395717b46145d9a4d917887010b4e
App Center Buildjetpack-installable-builds #10121
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.