@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 deprecated task subscriber class

Summary: This class is no longer used after D10965.

Test Plan: `grep`

Reviewers: btrahan, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

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

+1 -64
+1
resources/sql/autopatches/20150102.tasksubscriber.sql
··· 1 + DROP TABLE `{$NAMESPACE}_maniphest`.`maniphest_tasksubscriber`;
-2
src/__phutil_library_map__.php
··· 1043 1043 'ManiphestTaskStatus' => 'applications/maniphest/constants/ManiphestTaskStatus.php', 1044 1044 'ManiphestTaskStatusDatasource' => 'applications/maniphest/typeahead/ManiphestTaskStatusDatasource.php', 1045 1045 'ManiphestTaskStatusTestCase' => 'applications/maniphest/constants/__tests__/ManiphestTaskStatusTestCase.php', 1046 - 'ManiphestTaskSubscriber' => 'applications/maniphest/storage/ManiphestTaskSubscriber.php', 1047 1046 'ManiphestTransaction' => 'applications/maniphest/storage/ManiphestTransaction.php', 1048 1047 'ManiphestTransactionComment' => 'applications/maniphest/storage/ManiphestTransactionComment.php', 1049 1048 'ManiphestTransactionEditor' => 'applications/maniphest/editor/ManiphestTransactionEditor.php', ··· 4186 4185 'ManiphestTaskStatus' => 'ManiphestConstants', 4187 4186 'ManiphestTaskStatusDatasource' => 'PhabricatorTypeaheadDatasource', 4188 4187 'ManiphestTaskStatusTestCase' => 'PhabricatorTestCase', 4189 - 'ManiphestTaskSubscriber' => 'ManiphestDAO', 4190 4188 'ManiphestTransaction' => 'PhabricatorApplicationTransaction', 4191 4189 'ManiphestTransactionComment' => 'PhabricatorApplicationTransactionComment', 4192 4190 'ManiphestTransactionEditor' => 'PhabricatorApplicationTransactionEditor',
-62
src/applications/maniphest/storage/ManiphestTaskSubscriber.php
··· 1 - <?php 2 - 3 - /** 4 - * Deprecated; delete me. 5 - */ 6 - final class ManiphestTaskSubscriber extends ManiphestDAO { 7 - 8 - protected $taskPHID; 9 - protected $subscriberPHID; 10 - 11 - public function getConfiguration() { 12 - return array( 13 - self::CONFIG_IDS => self::IDS_MANUAL, 14 - self::CONFIG_TIMESTAMPS => false, 15 - self::CONFIG_COLUMN_SCHEMA => array( 16 - 'id' => null, 17 - ), 18 - self::CONFIG_KEY_SCHEMA => array( 19 - 'PRIMARY' => array( 20 - 'columns' => array('subscriberPHID', 'taskPHID'), 21 - 'unique' => true, 22 - ), 23 - 'taskPHID' => array( 24 - 'columns' => array('taskPHID', 'subscriberPHID'), 25 - 'unique' => true, 26 - ), 27 - ), 28 - ); 29 - } 30 - 31 - public static function updateTaskSubscribers(ManiphestTask $task) { 32 - $dao = new ManiphestTaskSubscriber(); 33 - $conn = $dao->establishConnection('w'); 34 - 35 - $sql = array(); 36 - $subscribers = $task->getCCPHIDs(); 37 - $subscribers[] = $task->getOwnerPHID(); 38 - $subscribers = array_unique($subscribers); 39 - 40 - foreach ($subscribers as $subscriber_phid) { 41 - $sql[] = qsprintf( 42 - $conn, 43 - '(%s, %s)', 44 - $task->getPHID(), 45 - $subscriber_phid); 46 - } 47 - 48 - queryfx( 49 - $conn, 50 - 'DELETE FROM %T WHERE taskPHID = %s', 51 - $dao->getTableName(), 52 - $task->getPHID()); 53 - if ($sql) { 54 - queryfx( 55 - $conn, 56 - 'INSERT INTO %T (taskPHID, subscriberPHID) VALUES %Q', 57 - $dao->getTableName(), 58 - implode(', ', $sql)); 59 - } 60 - } 61 - 62 - }