Select the types of activity you want to include in your feed.
@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
···3434 new DifferentialReviewedByField(),
3535 new DifferentialSubscribersField(),
3636 new DifferentialRepositoryField(),
3737- new DifferentialLintField(),
3837 new DifferentialProjectsField(),
3939- new DifferentialUnitField(),
4038 new DifferentialViewPolicyField(),
4139 new DifferentialEditPolicyField(),
4240···5452 new DifferentialBlameRevisionField(),
5553 new DifferentialPathField(),
5654 new DifferentialHostField(),
5555+ new DifferentialLintField(),
5656+ new DifferentialUnitField(),
5757 new DifferentialRevertPlanField(),
58585959 new DifferentialApplyPatchField(),
···1919 return true;
2020 }
21212222- public function renderPropertyViewLabel() {
2222+ public function renderPropertyViewValue(array $handles) {
2323+ return null;
2424+ }
2525+2626+ public function shouldAppearInDiffPropertyView() {
2727+ return true;
2828+ }
2929+3030+ public function renderDiffPropertyViewLabel(DifferentialDiff $diff) {
2331 return $this->getFieldName();
2432 }
25332626- public function getRequiredDiffPropertiesForRevisionView() {
2727- return array(
3434+ public function renderDiffPropertyViewValue(DifferentialDiff $diff) {
3535+ // TODO: This load is slightly inefficient, but most of this is moving
3636+ // to Harbormaster and this simplifies the transition. Eat 1-2 extra
3737+ // queries for now.
3838+ $keys = array(
2839 'arc:lint',
2940 'arc:lint-excuse',
3041 'arc:lint-postponed',
3142 );
3232- }
33433434- public function renderPropertyViewValue(array $handles) {
3535- $diff = $this->getObject()->getActiveDiff();
4444+ $properties = id(new DifferentialDiffProperty())->loadAllWhere(
4545+ 'diffID = %d AND name IN (%Ls)',
4646+ $diff->getID(),
4747+ $keys);
4848+ $properties = mpull($properties, 'getData', 'getName');
4949+5050+ foreach ($keys as $key) {
5151+ $diff->attachProperty($key, idx($properties, $key));
5252+ }
36533754 $path_changesets = mpull($diff->loadChangesets(), 'getID', 'getFilename');
3855
···3131 return;
3232 }
33333434+ if ($object instanceof DifferentialRevision) {
3535+ // TODO: This is a bit hacky and we could probably find a cleaner fix
3636+ // eventually, but we show build status on each diff, immediately below
3737+ // this property list, so it's redundant to show it on the revision view.
3838+ return;
3939+ }
4040+3441 if (!($object instanceof HarbormasterBuildableInterface)) {
3542 return;
3643 }