Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13960520
D9552.id22906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D9552.id22906.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Oct 15 2024, 11:47 PM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714945
Default Alt Text
D9552.id22906.diff (2 KB)
Attached To
Mode
D9552: Support "Projects" field for pholio mocks in Herald
Attached
Detach File
Event Timeline
Log In to Comment