Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/query/PhabricatorPeopleQuery.php
| Show First 20 Lines • Show All 522 Lines • ▼ Show 20 Lines | $cache_data = queryfx_all( | ||||
| $hashes, | $hashes, | ||||
| array_keys($user_map)); | array_keys($user_map)); | ||||
| $need = array(); | $need = array(); | ||||
| $cache_data = igroup($cache_data, 'userPHID'); | $cache_data = igroup($cache_data, 'userPHID'); | ||||
| foreach ($user_map as $user_phid => $user) { | foreach ($user_map as $user_phid => $user) { | ||||
| $raw_rows = idx($cache_data, $user_phid, array()); | $raw_rows = idx($cache_data, $user_phid, array()); | ||||
| if (!$raw_rows) { | |||||
| continue; | |||||
| } | |||||
| $raw_data = ipull($raw_rows, 'cacheData', 'cacheKey'); | $raw_data = ipull($raw_rows, 'cacheData', 'cacheKey'); | ||||
| foreach ($keys as $key) { | foreach ($keys as $key) { | ||||
| if (isset($raw_data[$key]) || array_key_exists($key, $raw_data)) { | if (isset($raw_data[$key]) || array_key_exists($key, $raw_data)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $need[$key][$user_phid] = $user; | $need[$key][$user_phid] = $user; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||