Fix 'Transcript' links in Differential

Summary:
add filtering for MetaMTA transcripts, add Herald
transcripts, also fixed PhabricatorObjectHandleData to support commits.
Note that paging in the transcripts pages will be in a different diff.

Test Plan:
test the transcripts for both MetaMTA and Herald.

Reviewed By: epriestley
Reviewers: epriestley, tuomaspelkonen
CC: jungejason, epriestley
Differential Revision: 114
This commit is contained in:
jungejason
2011-04-07 14:24:54 -07:00
parent 73bf36505b
commit cca849c762
8 changed files with 70 additions and 48 deletions

View File

@@ -24,12 +24,26 @@ class HeraldTranscriptListController extends HeraldController {
// Pull these objects manually since the serialized fields are gigantic.
$transcript = new HeraldTranscript();
$conn_r = $transcript->establishConnection('r');
$phid = $request->getStr('phid');
$where_clause = '';
if ($phid) {
$where_clause = qsprintf(
$conn_r,
'WHERE objectPHID = %s',
$phid
);
}
$data = queryfx_all(
$transcript->establishConnection('r'),
$conn_r,
'SELECT id, objectPHID, time, duration, dryRun FROM %T
%Q
ORDER BY id DESC
LIMIT 100',
$transcript->getTableName());
$transcript->getTableName(),
$where_clause);
/*