Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15511979
D8240.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D8240.id.diff
View Options
Index: src/applications/differential/controller/DifferentialInlineCommentEditController.php
===================================================================
--- src/applications/differential/controller/DifferentialInlineCommentEditController.php
+++ src/applications/differential/controller/DifferentialInlineCommentEditController.php
@@ -60,8 +60,9 @@
return false;
}
- // Saved comments may not be edited.
- if ($inline->getCommentID()) {
+ // Saved comments may not be edited, for now, although the schema now
+ // supports it.
+ if (!$inline->isDraft()) {
return false;
}
Index: src/applications/differential/query/DifferentialInlineCommentQuery.php
===================================================================
--- src/applications/differential/query/DifferentialInlineCommentQuery.php
+++ src/applications/differential/query/DifferentialInlineCommentQuery.php
@@ -45,11 +45,6 @@
return $this;
}
- public function withCommentIDs(array $comment_ids) {
- $this->commentIDs = $comment_ids;
- return $this;
- }
-
public function execute() {
$table = new DifferentialTransactionComment();
$conn_r = $table->establishConnection('r');
@@ -155,13 +150,6 @@
$this->draftsByAuthors);
}
- if ($this->commentIDs) {
- $where[] = qsprintf(
- $conn_r,
- 'legacyCommentID IN (%Ld)',
- $this->commentIDs);
- }
-
return $this->formatWhereClause($where);
}
Index: src/applications/differential/storage/DifferentialInlineComment.php
===================================================================
--- src/applications/differential/storage/DifferentialInlineComment.php
+++ src/applications/differential/storage/DifferentialInlineComment.php
@@ -167,7 +167,6 @@
// the future transaction.
public function setCommentID($id) {
- $this->proxy->setLegacyCommentID($id);
$this->proxy->setTransactionPHID(
PhabricatorPHID::generateNewPHID(
PhabricatorApplicationTransactionPHIDTypeTransaction::TYPECONST,
@@ -175,11 +174,6 @@
return $this;
}
- public function getCommentID() {
- return $this->proxy->getLegacyCommentID();
- }
-
-
/* -( PhabricatorMarkupInterface Implementation )-------------------------- */
@@ -202,7 +196,7 @@
public function shouldUseMarkupCache($field) {
// Only cache submitted comments.
- return ($this->getID() && $this->getCommentID());
+ return ($this->getID() && !$this->isDraft());
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 18, 7:08 AM (5 d, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7727924
Default Alt Text
D8240.id.diff (2 KB)
Attached To
Mode
D8240: Remove references to legacy comment IDs
Attached
Detach File
Event Timeline
Log In to Comment