Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15455290
D21226.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
7 KB
Referenced Files
None
Subscribers
None
D21226.id.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -13,7 +13,7 @@
'core.pkg.js' => '1e667bcb',
'dark-console.pkg.js' => '187792c2',
'differential.pkg.css' => '2d70b7b9',
- 'differential.pkg.js' => '22ec6f26',
+ 'differential.pkg.js' => 'faa6e8ab',
'diffusion.pkg.css' => '42c75c37',
'diffusion.pkg.js' => 'a98c0bf7',
'maniphest.pkg.css' => '35995d6d',
@@ -433,7 +433,7 @@
'rsrc/js/application/releeph/releeph-preview-branch.js' => '75184d68',
'rsrc/js/application/releeph/releeph-request-state-change.js' => '9f081f05',
'rsrc/js/application/releeph/releeph-request-typeahead.js' => 'aa3a100c',
- 'rsrc/js/application/repository/repository-crossreference.js' => '1c95ea63',
+ 'rsrc/js/application/repository/repository-crossreference.js' => '6337cf26',
'rsrc/js/application/search/behavior-reorder-profile-menu-items.js' => 'e5bdb730',
'rsrc/js/application/search/behavior-reorder-queries.js' => 'b86f297f',
'rsrc/js/application/transactions/behavior-comment-actions.js' => '4dffaeb2',
@@ -685,7 +685,7 @@
'javelin-behavior-reorder-applications' => 'aa371860',
'javelin-behavior-reorder-columns' => '8ac32fd9',
'javelin-behavior-reorder-profile-menu-items' => 'e5bdb730',
- 'javelin-behavior-repository-crossreference' => '1c95ea63',
+ 'javelin-behavior-repository-crossreference' => '6337cf26',
'javelin-behavior-scrollbar' => '92388bae',
'javelin-behavior-search-reorder-queries' => 'b86f297f',
'javelin-behavior-select-content' => 'e8240b50',
@@ -1049,12 +1049,6 @@
'javelin-install',
'javelin-util',
),
- '1c95ea63' => array(
- 'javelin-behavior',
- 'javelin-dom',
- 'javelin-stratcom',
- 'javelin-uri',
- ),
'1cab0e9a' => array(
'javelin-behavior',
'javelin-dom',
@@ -1501,6 +1495,12 @@
'60cd9241' => array(
'javelin-behavior',
),
+ '6337cf26' => array(
+ 'javelin-behavior',
+ 'javelin-dom',
+ 'javelin-stratcom',
+ 'javelin-uri',
+ ),
'65bb0011' => array(
'javelin-behavior',
'javelin-dom',
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -3593,6 +3593,7 @@
'PhabricatorInfrastructureTestCase' => '__tests__/PhabricatorInfrastructureTestCase.php',
'PhabricatorInlineComment' => 'infrastructure/diff/interface/PhabricatorInlineComment.php',
'PhabricatorInlineCommentController' => 'infrastructure/diff/PhabricatorInlineCommentController.php',
+ 'PhabricatorInlineCommentInterface' => 'applications/transactions/interface/PhabricatorInlineCommentInterface.php',
'PhabricatorInlineSummaryView' => 'infrastructure/diff/view/PhabricatorInlineSummaryView.php',
'PhabricatorInstructionsEditField' => 'applications/transactions/editfield/PhabricatorInstructionsEditField.php',
'PhabricatorIntConfigType' => 'applications/config/type/PhabricatorIntConfigType.php',
@@ -6789,7 +6790,10 @@
'DifferentialTestPlanField' => 'DifferentialCoreCustomField',
'DifferentialTitleCommitMessageField' => 'DifferentialCommitMessageField',
'DifferentialTransaction' => 'PhabricatorModularTransaction',
- 'DifferentialTransactionComment' => 'PhabricatorApplicationTransactionComment',
+ 'DifferentialTransactionComment' => array(
+ 'PhabricatorApplicationTransactionComment',
+ 'PhabricatorInlineCommentInterface',
+ ),
'DifferentialTransactionEditor' => 'PhabricatorApplicationTransactionEditor',
'DifferentialTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'DifferentialTransactionView' => 'PhabricatorApplicationTransactionView',
@@ -8599,7 +8603,10 @@
'PhabricatorAuditStatusConstants' => 'Phobject',
'PhabricatorAuditSynchronizeManagementWorkflow' => 'PhabricatorAuditManagementWorkflow',
'PhabricatorAuditTransaction' => 'PhabricatorModularTransaction',
- 'PhabricatorAuditTransactionComment' => 'PhabricatorApplicationTransactionComment',
+ 'PhabricatorAuditTransactionComment' => array(
+ 'PhabricatorApplicationTransactionComment',
+ 'PhabricatorInlineCommentInterface',
+ ),
'PhabricatorAuditTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'PhabricatorAuditTransactionView' => 'PhabricatorApplicationTransactionView',
'PhabricatorAuditUpdateOwnersManagementWorkflow' => 'PhabricatorAuditManagementWorkflow',
diff --git a/src/applications/audit/storage/PhabricatorAuditTransactionComment.php b/src/applications/audit/storage/PhabricatorAuditTransactionComment.php
--- a/src/applications/audit/storage/PhabricatorAuditTransactionComment.php
+++ b/src/applications/audit/storage/PhabricatorAuditTransactionComment.php
@@ -1,7 +1,9 @@
<?php
final class PhabricatorAuditTransactionComment
- extends PhabricatorApplicationTransactionComment {
+ extends PhabricatorApplicationTransactionComment
+ implements
+ PhabricatorInlineCommentInterface {
protected $commitPHID;
protected $pathID;
@@ -85,4 +87,8 @@
return !strlen($this->getContent());
}
+ public function newInlineCommentObject() {
+ return PhabricatorAuditInlineComment::newFromModernComment($this);
+ }
+
}
diff --git a/src/applications/differential/storage/DifferentialTransactionComment.php b/src/applications/differential/storage/DifferentialTransactionComment.php
--- a/src/applications/differential/storage/DifferentialTransactionComment.php
+++ b/src/applications/differential/storage/DifferentialTransactionComment.php
@@ -1,7 +1,9 @@
<?php
final class DifferentialTransactionComment
- extends PhabricatorApplicationTransactionComment {
+ extends PhabricatorApplicationTransactionComment
+ implements
+ PhabricatorInlineCommentInterface {
protected $revisionPHID;
protected $changesetID;
@@ -131,4 +133,8 @@
return !strlen($this->getContent());
}
+ public function newInlineCommentObject() {
+ return DifferentialInlineComment::newFromModernComment($this);
+ }
+
}
diff --git a/src/applications/transactions/interface/PhabricatorInlineCommentInterface.php b/src/applications/transactions/interface/PhabricatorInlineCommentInterface.php
new file mode 100644
--- /dev/null
+++ b/src/applications/transactions/interface/PhabricatorInlineCommentInterface.php
@@ -0,0 +1,7 @@
+<?php
+
+interface PhabricatorInlineCommentInterface {
+
+ public function newInlineCommentObject();
+
+}
diff --git a/src/infrastructure/diff/view/PHUIDiffInlineCommentPreviewListView.php b/src/infrastructure/diff/view/PHUIDiffInlineCommentPreviewListView.php
--- a/src/infrastructure/diff/view/PHUIDiffInlineCommentPreviewListView.php
+++ b/src/infrastructure/diff/view/PHUIDiffInlineCommentPreviewListView.php
@@ -38,15 +38,7 @@
$inlines = $this->getInlineComments();
foreach ($inlines as $key => $inline) {
- // TODO: This is real, real gross.
-
- if ($inline instanceof DifferentialTransactionComment) {
- $inlines[$key] = DifferentialInlineComment::newFromModernComment(
- $inline);
- } else {
- $inlines[$key] = PhabricatorAuditInlineComment::newFromModernComment(
- $inline);
- }
+ $inlines[$key] = $inline->newInlineCommentObject();
}
$engine = new PhabricatorMarkupEngine();
diff --git a/webroot/rsrc/js/application/repository/repository-crossreference.js b/webroot/rsrc/js/application/repository/repository-crossreference.js
--- a/webroot/rsrc/js/application/repository/repository-crossreference.js
+++ b/webroot/rsrc/js/application/repository/repository-crossreference.js
@@ -219,7 +219,7 @@
}
function getPath(target) {
- // This method works in Differential, when browsing a changset.
+ // This method works in Differential, when browsing a changeset.
var changeset;
try {
changeset = JX.DOM.findAbove(target, 'div', 'differential-changeset');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 30, 11:21 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7725975
Default Alt Text
D21226.id.diff (7 KB)
Attached To
Mode
D21226: Allow inline comment storage objects to generate their own runtime objects
Attached
Detach File
Event Timeline
Log In to Comment