Please sign in to comment.
Consolidate User Profile loading
Summary: Introduce `PhabricatorUserQuery::attachProfilesForUsers()` for batch attachment of user profiles (for a future diff) Introduce `PhabricatorUser::loadUserProfile()` to load attached user profiles (or load them on their own, if no one is attached). USed them in code Test Plan: verified that use sites did not break - Uploaded user profile image for bots - changed my own profile image and blurb - looked a lot at my own profile Reviewers: epriestley, btrahan, chad Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5395
- Loading branch information...
Showing with 92 additions and 21 deletions.
- +48 −0 src/applications/people/PhabricatorPeopleQuery.php
- +2 −6 src/applications/people/controller/PhabricatorPeopleEditController.php
- +1 −6 src/applications/people/controller/PhabricatorPeopleProfileController.php
- +40 −2 src/applications/people/storage/PhabricatorUser.php
- +1 −7 src/applications/settings/panel/PhabricatorSettingsPanelProfile.php