Page MenuHomePhabricator

D9552.id22906.diff
No OneTemporary

D9552.id22906.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -4864,6 +4864,7 @@
array(
0 => 'PhabricatorRepositoryDAO',
1 => 'PhabricatorPolicyInterface',
+ 2 => 'PhabricatorDestructableInterface',
),
'PhabricatorRepositoryArcanistProjectDeleteController' => 'PhabricatorRepositoryController',
'PhabricatorRepositoryArcanistProjectEditController' => 'PhabricatorRepositoryController',
@@ -5329,6 +5330,7 @@
5 => 'PhabricatorFlaggableInterface',
6 => 'PhabricatorApplicationTransactionInterface',
7 => 'PhabricatorProjectInterface',
+ 8 => 'PhabricatorDestructableInterface',
),
'PholioMockCommentController' => 'PholioController',
'PholioMockEditController' => 'PholioController',
diff --git a/src/applications/herald/adapter/HeraldPholioMockAdapter.php b/src/applications/herald/adapter/HeraldPholioMockAdapter.php
--- a/src/applications/herald/adapter/HeraldPholioMockAdapter.php
+++ b/src/applications/herald/adapter/HeraldPholioMockAdapter.php
@@ -1,8 +1,5 @@
<?php
-/**
- * @group herald
- */
final class HeraldPholioMockAdapter extends HeraldAdapter {
private $mock;
@@ -13,8 +10,7 @@
}
public function getAdapterContentDescription() {
- return pht(
- 'React to mocks being created or updated.');
+ return pht('React to mocks being created or updated.');
}
public function getObject() {
@@ -59,6 +55,7 @@
self::FIELD_BODY,
self::FIELD_AUTHOR,
self::FIELD_CC,
+ self::FIELD_PROJECTS,
self::FIELD_IS_NEW_OBJECT,
),
parent::getFields());
@@ -98,7 +95,11 @@
return $this->getMock()->getAuthorPHID();
case self::FIELD_CC:
return PhabricatorSubscribersQuery::loadSubscribersForPHID(
- $this->getMock()->getPHID());
+ $this->getMock()->getPHID());
+ case self::FIELD_PROJECTS:
+ return PhabricatorEdgeQuery::loadDestinationPHIDs(
+ $this->getMock()->getPHID(),
+ PhabricatorEdgeConfig::TYPE_OBJECT_HAS_PROJECT);
}
return parent::getHeraldField($field);

File Metadata

Mime Type
text/plain
Expires
Oct 19 2024, 8:02 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714945
Default Alt Text
D9552.id22906.diff (2 KB)

Event Timeline