Merge lp:~huwshimi/launchpad/avatars-everywhere-712894 into lp:launchpad
Proposed by
Huw Wilkins
Status: | Work in progress |
---|---|
Proposed branch: | lp:~huwshimi/launchpad/avatars-everywhere-712894 |
Merge into: | lp:launchpad |
Diff against target: |
202 lines (+73/-12) 6 files modified
lib/canonical/launchpad/icing/style.css (+9/-0) lib/lp/app/browser/tales.py (+34/-4) lib/lp/code/browser/branchlisting.py (+8/-3) lib/lp/registry/model/person.py (+11/-3) lib/lp/registry/model/product.py (+7/-2) lib/lp/services/features/flags.py (+4/-0) |
To merge this branch: | bzr merge lp:~huwshimi/launchpad/avatars-everywhere-712894 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Needs Fixing | ||
Review via email: mp+81430@code.launchpad.net |
Commit message
Usernames now have the user's avatar next to them instead of the generic user icon.
Description of the change
This branch swaps out the icon checking code for avatar checking code. The tail then returns the username with the avatar instead of the generic user icon.
Screenshot of the change: https:/
To test the following feature rule needs to be set:
tales.avatars.
To post a comment you must log in.
I haven't triple-checked this, but there is a decent chance this will cause widespread timeouts due to lazy evaluation of the logo (vs the icon).
getPrecachedPer sonsFromIDs is the primary eager loading function to update, changing from need_icon to need_logo, and so on down the call chain from there.
(Reason being, that loading even the icons for 50 people can take a significant chunk of time, and some pages like blueprint reports load the icons for hundreds of people).
I'm going to mark this needs fixing, because I fully expect this problem to crop up. However, if you want to land it under a feature flag, so that widespread testing can be done, that would be fine with me.
I haven't done a detailed review, sorry.