Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15419964
D19316.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19316.id.diff
View Options
diff --git a/src/applications/almanac/management/AlmanacManagementWorkflow.php b/src/applications/almanac/management/AlmanacManagementWorkflow.php
--- a/src/applications/almanac/management/AlmanacManagementWorkflow.php
+++ b/src/applications/almanac/management/AlmanacManagementWorkflow.php
@@ -26,20 +26,4 @@
return $services;
}
- protected function updateServiceLock(AlmanacService $service, $lock) {
- $almanac_phid = id(new PhabricatorAlmanacApplication())->getPHID();
-
- $xaction = id(new AlmanacServiceTransaction())
- ->setTransactionType(AlmanacServiceTransaction::TYPE_LOCK)
- ->setNewValue((int)$lock);
-
- $editor = id(new AlmanacServiceEditor())
- ->setActor($this->getViewer())
- ->setActingAsPHID($almanac_phid)
- ->setContentSource($this->newContentSource())
- ->setContinueOnMissingFields(true);
-
- $editor->applyTransactions($service, array($xaction));
- }
-
}
diff --git a/src/applications/almanac/storage/AlmanacServiceTransaction.php b/src/applications/almanac/storage/AlmanacServiceTransaction.php
--- a/src/applications/almanac/storage/AlmanacServiceTransaction.php
+++ b/src/applications/almanac/storage/AlmanacServiceTransaction.php
@@ -4,7 +4,6 @@
extends AlmanacTransaction {
const TYPE_NAME = 'almanac:service:name';
- const TYPE_LOCK = 'almanac:service:lock';
public function getApplicationTransactionType() {
return AlmanacServicePHIDType::TYPECONST;
@@ -30,17 +29,6 @@
$new);
}
break;
- case self::TYPE_LOCK:
- if ($new) {
- return pht(
- '%s locked this service.',
- $this->renderHandleLink($author_phid));
- } else {
- return pht(
- '%s unlocked this service.',
- $this->renderHandleLink($author_phid));
- }
- break;
}
return parent::getTitle();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 22, 10:09 AM (3 d, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7309452
Default Alt Text
D19316.id.diff (1 KB)
Attached To
Mode
D19316: Remove dead "Service Lock" code from Almanac
Attached
Detach File
Event Timeline
Log In to Comment