Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14760183
D8424.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D8424.id.diff
View Options
Index: src/__phutil_library_map__.php
===================================================================
--- src/__phutil_library_map__.php
+++ src/__phutil_library_map__.php
@@ -148,7 +148,6 @@
'ConduitAPI_differential_getrawdiff_Method' => 'applications/differential/conduit/ConduitAPI_differential_getrawdiff_Method.php',
'ConduitAPI_differential_getrevision_Method' => 'applications/differential/conduit/ConduitAPI_differential_getrevision_Method.php',
'ConduitAPI_differential_getrevisioncomments_Method' => 'applications/differential/conduit/ConduitAPI_differential_getrevisioncomments_Method.php',
- 'ConduitAPI_differential_markcommitted_Method' => 'applications/differential/conduit/ConduitAPI_differential_markcommitted_Method.php',
'ConduitAPI_differential_parsecommitmessage_Method' => 'applications/differential/conduit/ConduitAPI_differential_parsecommitmessage_Method.php',
'ConduitAPI_differential_query_Method' => 'applications/differential/conduit/ConduitAPI_differential_query_Method.php',
'ConduitAPI_differential_querydiffs_Method' => 'applications/differential/conduit/ConduitAPI_differential_querydiffs_Method.php',
@@ -2724,7 +2723,6 @@
'ConduitAPI_differential_getrawdiff_Method' => 'ConduitAPIMethod',
'ConduitAPI_differential_getrevision_Method' => 'ConduitAPIMethod',
'ConduitAPI_differential_getrevisioncomments_Method' => 'ConduitAPI_differential_Method',
- 'ConduitAPI_differential_markcommitted_Method' => 'ConduitAPIMethod',
'ConduitAPI_differential_parsecommitmessage_Method' => 'ConduitAPIMethod',
'ConduitAPI_differential_query_Method' => 'ConduitAPIMethod',
'ConduitAPI_differential_querydiffs_Method' => 'ConduitAPIMethod',
Index: src/applications/differential/conduit/ConduitAPI_differential_markcommitted_Method.php
===================================================================
--- src/applications/differential/conduit/ConduitAPI_differential_markcommitted_Method.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-/**
- * @group conduit
- * @deprecated
- */
-final class ConduitAPI_differential_markcommitted_Method
- extends ConduitAPIMethod {
-
- public function getMethodStatus() {
- return self::METHOD_STATUS_DEPRECATED;
- }
-
- public function getMethodStatusDescription() {
- return "Replaced by 'differential.close'.";
- }
-
- public function getMethodDescription() {
- return "Mark a revision closed.";
- }
-
- public function defineParamTypes() {
- return array(
- 'revision_id' => 'required revision_id',
- );
- }
-
- public function defineReturnType() {
- return 'void';
- }
-
- public function defineErrorTypes() {
- return array(
- 'ERR_NOT_FOUND' => 'Revision was not found.',
- );
- }
-
- protected function execute(ConduitAPIRequest $request) {
- $id = $request->getValue('revision_id');
-
- $revision = id(new DifferentialRevisionQuery())
- ->withIDs(array($id))
- ->setViewer($request->getUser())
- ->needRelationships(true)
- ->needReviewerStatus(true)
- ->executeOne();
- if (!$revision) {
- throw new ConduitException('ERR_NOT_FOUND');
- }
-
- if ($revision->getStatus() == ArcanistDifferentialRevisionStatus::CLOSED) {
- return;
- }
-
- $editor = new DifferentialCommentEditor(
- $revision,
- DifferentialAction::ACTION_CLOSE);
- $editor->setActor($request->getUser());
- $editor->save();
- }
-
-}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 4:58 PM (14 h, 18 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7037471
Default Alt Text
D8424.id.diff (3 KB)
Attached To
Mode
D8424: Remove `differential.markcommitted`
Attached
Detach File
Event Timeline
Log In to Comment