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

Make the new synthetic burnup chart data respect the "Project" filter

Summary: See PHI273. Third time's the charm? This page has a "Project" filter which lets you view data for only one project, but the synthetic data currently ignores it.

Test Plan: Filtered burnup chart by various projects, saw sensible-looking data.

Reviewers: amckinley

Reviewed By: amckinley

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

+10 -2
+10 -2
src/applications/maniphest/controller/ManiphestReportController.php
··· 75 75 $conn = $table->establishConnection('r'); 76 76 77 77 $joins = ''; 78 + $create_joins = ''; 78 79 if ($project_phid) { 79 80 $joins = qsprintf( 80 81 $conn, 81 82 'JOIN %T t ON x.objectPHID = t.phid 82 83 JOIN %T p ON p.src = t.phid AND p.type = %d AND p.dst = %s', 83 84 id(new ManiphestTask())->getTableName(), 85 + PhabricatorEdgeConfig::TABLE_NAME_EDGE, 86 + PhabricatorProjectObjectHasProjectEdgeType::EDGECONST, 87 + $project_phid); 88 + $create_joins = qsprintf( 89 + $conn, 90 + 'JOIN %T p ON p.src = t.phid AND p.type = %d AND p.dst = %s', 84 91 PhabricatorEdgeConfig::TABLE_NAME_EDGE, 85 92 PhabricatorProjectObjectHasProjectEdgeType::EDGECONST, 86 93 $project_phid); ··· 113 120 // default value. 114 121 $create_rows = queryfx_all( 115 122 $conn, 116 - 'SELECT dateCreated FROM %T', 117 - id(new ManiphestTask())->getTableName()); 123 + 'SELECT t.dateCreated FROM %T t %Q', 124 + id(new ManiphestTask())->getTableName(), 125 + $create_joins); 118 126 foreach ($create_rows as $key => $create_row) { 119 127 $create_rows[$key] = array( 120 128 'transactionType' => 'status',