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:
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user