@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove many redundant implementations of `canLoadNamedObject()`

Summary:
These just got copy/pasted like crazy, the base class has the correct default implementation.

(I'm adding "H" for Herald Rules, which is why I was in this code.)

I also documented the existing prefixes at [[ Object Name Prefixes ]].

Test Plan: Verified base implementation. Typed some object names into the jump nav.

Reviewers: btrahan

Reviewed By: btrahan

CC: hach-que, aran

Differential Revision: https://secure.phabricator.com/D7785

-85
-4
src/applications/config/phid/PhabricatorConfigPHIDTypeConfig.php
··· 39 39 } 40 40 } 41 41 42 - public function canLoadNamedObject($name) { 43 - return false; 44 - } 45 - 46 42 }
-4
src/applications/differential/phid/DifferentialPHIDTypeDiff.php
··· 38 38 } 39 39 } 40 40 41 - public function canLoadNamedObject($name) { 42 - return false; 43 - } 44 - 45 41 }
-4
src/applications/macro/phid/PhabricatorMacroPHIDTypeMacro.php
··· 41 41 } 42 42 } 43 43 44 - public function canLoadNamedObject($name) { 45 - return false; 46 - } 47 - 48 44 }
-4
src/applications/mailinglists/phid/PhabricatorMailingListPHIDTypeList.php
··· 37 37 } 38 38 } 39 39 40 - public function canLoadNamedObject($name) { 41 - return false; 42 - } 43 - 44 40 }
-4
src/applications/meta/phid/PhabricatorApplicationPHIDTypeApplication.php
··· 38 38 } 39 39 } 40 40 41 - public function canLoadNamedObject($name) { 42 - return false; 43 - } 44 - 45 41 }
-4
src/applications/nuance/phid/NuancePHIDTypeItem.php
··· 39 39 } 40 40 } 41 41 42 - public function canLoadNamedObject($name) { 43 - return false; 44 - } 45 - 46 42 }
-4
src/applications/nuance/phid/NuancePHIDTypeQueue.php
··· 39 39 } 40 40 } 41 41 42 - public function canLoadNamedObject($name) { 43 - return false; 44 - } 45 - 46 42 }
-4
src/applications/nuance/phid/NuancePHIDTypeRequestor.php
··· 39 39 } 40 40 } 41 41 42 - public function canLoadNamedObject($name) { 43 - return false; 44 - } 45 - 46 42 }
-4
src/applications/nuance/phid/NuancePHIDTypeSource.php
··· 39 39 } 40 40 } 41 41 42 - public function canLoadNamedObject($name) { 43 - return false; 44 - } 45 - 46 42 }
-4
src/applications/people/phid/PhabricatorPeoplePHIDTypeExternal.php
··· 37 37 } 38 38 } 39 39 40 - public function canLoadNamedObject($name) { 41 - return false; 42 - } 43 - 44 40 }
-4
src/applications/phlux/phid/PhluxPHIDTypeVariable.php
··· 40 40 } 41 41 } 42 42 43 - public function canLoadNamedObject($name) { 44 - return false; 45 - } 46 - 47 43 }
-4
src/applications/phragment/phid/PhragmentPHIDTypeFragment.php
··· 42 42 } 43 43 } 44 44 45 - public function canLoadNamedObject($name) { 46 - return false; 47 - } 48 - 49 45 }
-4
src/applications/phragment/phid/PhragmentPHIDTypeFragmentVersion.php
··· 42 42 } 43 43 } 44 44 45 - public function canLoadNamedObject($name) { 46 - return false; 47 - } 48 - 49 45 }
-4
src/applications/phragment/phid/PhragmentPHIDTypeSnapshot.php
··· 41 41 } 42 42 } 43 43 44 - public function canLoadNamedObject($name) { 45 - return false; 46 - } 47 - 48 44 }
-4
src/applications/phriction/phid/PhrictionPHIDTypeDocument.php
··· 46 46 } 47 47 } 48 48 49 - public function canLoadNamedObject($name) { 50 - return false; 51 - } 52 - 53 49 }
-4
src/applications/policy/phid/PhabricatorPolicyPHIDTypePolicy.php
··· 38 38 } 39 39 } 40 40 41 - public function canLoadNamedObject($name) { 42 - return false; 43 - } 44 - 45 41 }
-4
src/applications/releeph/phid/ReleephPHIDTypeBranch.php
··· 38 38 } 39 39 } 40 40 41 - public function canLoadNamedObject($name) { 42 - return false; 43 - } 44 - 45 41 }
-4
src/applications/releeph/phid/ReleephPHIDTypeProject.php
··· 37 37 } 38 38 } 39 39 40 - public function canLoadNamedObject($name) { 41 - return false; 42 - } 43 - 44 40 }
-4
src/applications/releeph/phid/ReleephPHIDTypeRequest.php
··· 41 41 } 42 42 } 43 43 44 - public function canLoadNamedObject($name) { 45 - return false; 46 - } 47 - 48 44 }
-5
src/applications/repository/phid/PhabricatorRepositoryPHIDTypeMirror.php
··· 39 39 } 40 40 } 41 41 42 - public function canLoadNamedObject($name) { 43 - return false; 44 - } 45 - 46 - 47 42 }
-4
src/applications/repository/phid/PhabricatorRepositoryPHIDTypePushLog.php
··· 37 37 } 38 38 } 39 39 40 - public function canLoadNamedObject($name) { 41 - return false; 42 - } 43 - 44 40 }