Differential D10590 Diff 25464 src/applications/audit/storage/PhabricatorAuditTransactionComment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/storage/PhabricatorAuditTransactionComment.php
Show All 18 Lines | final class PhabricatorAuditTransactionComment | ||||
public function shouldUseMarkupCache($field) { | public function shouldUseMarkupCache($field) { | ||||
// Only cache submitted comments. | // Only cache submitted comments. | ||||
return ($this->getTransactionPHID() != null); | return ($this->getTransactionPHID() != null); | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
$config = parent::getConfiguration(); | $config = parent::getConfiguration(); | ||||
$config[self::CONFIG_COLUMN_SCHEMA] = array( | $config[self::CONFIG_COLUMN_SCHEMA] = array( | ||||
'commitPHID' => 'phid?', | 'commitPHID' => 'phid?', | ||||
'pathID' => 'id?', | 'pathID' => 'id?', | ||||
'isNewFile' => 'bool', | 'isNewFile' => 'bool', | ||||
'lineNumber' => 'uint32', | 'lineNumber' => 'uint32', | ||||
'lineLength' => 'uint32', | 'lineLength' => 'uint32', | ||||
'fixedState' => 'text12?', | 'fixedState' => 'text12?', | ||||
'hasReplies' => 'bool', | 'hasReplies' => 'bool', | ||||
'replyToCommentPHID' => 'phid?', | 'replyToCommentPHID' => 'phid?', | ||||
'legacyCommentID' => 'id?', | 'legacyCommentID' => 'id?', | ||||
) + $config[self::CONFIG_COLUMN_SCHEMA]; | ) + $config[self::CONFIG_COLUMN_SCHEMA]; | ||||
$config[self::CONFIG_KEY_SCHEMA] = array( | |||||
'key_path' => array( | |||||
'columns' => array('pathID'), | |||||
), | |||||
'key_draft' => array( | |||||
'columns' => array('authorPHID', 'transactionPHID'), | |||||
), | |||||
'key_commit' => array( | |||||
'columns' => array('commitPHID'), | |||||
), | |||||
'key_legacy' => array( | |||||
'columns' => array('legacyCommentID'), | |||||
), | |||||
) + $config[self::CONFIG_KEY_SCHEMA]; | |||||
return $config; | return $config; | ||||
} | } | ||||
} | } |