@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.

Point Maniphest reports at new transaction table

Summary:
Ref T2217. Drive reports out of the new table. Nothing too magical going on here.

Also fixes a bug with one of the links from reports.

Test Plan: Viewed reports.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2217

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

+5 -5
+5 -5
src/applications/maniphest/controller/ManiphestReportController.php
··· 79 79 $handle = $handles[$project_phid]; 80 80 } 81 81 82 - $table = new ManiphestTransaction(); 82 + $table = new ManiphestTransactionPro(); 83 83 $conn = $table->establishConnection('r'); 84 84 85 85 $joins = ''; 86 86 if ($project_phid) { 87 87 $joins = qsprintf( 88 88 $conn, 89 - 'JOIN %T t ON x.taskID = t.id 89 + 'JOIN %T t ON x.objectPHID = t.phid 90 90 JOIN %T p ON p.taskPHID = t.phid AND p.projectPHID = %s', 91 91 id(new ManiphestTask())->getTableName(), 92 92 id(new ManiphestTaskProject())->getTableName(), ··· 522 522 $row[] = phutil_tag( 523 523 'a', 524 524 array( 525 - 'href' => '/maniphest/view/custom/?s=oc&tasks='.$task_ids, 525 + 'href' => '/maniphest/?ids='.$task_ids, 526 526 'target' => '_blank', 527 527 ), 528 528 number_format(count($closed))); ··· 652 652 list($ignored, $window_epoch) = $this->getWindow(); 653 653 654 654 $table = new ManiphestTask(); 655 - $xtable = new ManiphestTransaction(); 655 + $xtable = new ManiphestTransactionPro(); 656 656 $conn_r = $table->establishConnection('r'); 657 657 658 658 $tasks = queryfx_all( 659 659 $conn_r, 660 - 'SELECT t.* FROM %T t JOIN %T x ON x.taskID = t.id 660 + 'SELECT t.* FROM %T t JOIN %T x ON x.objectPHID = t.phid 661 661 WHERE t.status != 0 662 662 AND x.oldValue IN (null, %s, %s) 663 663 AND x.newValue NOT IN (%s, %s)