Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15312232
D8633.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D8633.diff
View Options
diff --git a/resources/sql/autopatches/20140328.releeph.1.productxaction.sql b/resources/sql/autopatches/20140328.releeph.1.productxaction.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20140328.releeph.1.productxaction.sql
@@ -0,0 +1,2 @@
+ALTER TABLE {$NAMESPACE}_releeph.releeph_projecttransaction
+ RENAME {$NAMESPACE}_releeph.releeph_producttransaction;
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
@@ -2516,6 +2516,8 @@
'ReleephPHIDTypeRequest' => 'applications/releeph/phid/ReleephPHIDTypeRequest.php',
'ReleephProductActionController' => 'applications/releeph/controller/project/ReleephProductActionController.php',
'ReleephProductController' => 'applications/releeph/controller/project/ReleephProductController.php',
+ 'ReleephProductTransaction' => 'applications/releeph/storage/ReleephProductTransaction.php',
+ 'ReleephProductTransactionQuery' => 'applications/releeph/query/ReleephProductTransactionQuery.php',
'ReleephProject' => 'applications/releeph/storage/ReleephProject.php',
'ReleephProjectController' => 'applications/releeph/controller/ReleephProjectController.php',
'ReleephProjectCreateController' => 'applications/releeph/controller/project/ReleephProjectCreateController.php',
@@ -2524,8 +2526,6 @@
'ReleephProjectListController' => 'applications/releeph/controller/project/ReleephProjectListController.php',
'ReleephProjectQuery' => 'applications/releeph/query/ReleephProjectQuery.php',
'ReleephProjectSearchEngine' => 'applications/releeph/query/ReleephProjectSearchEngine.php',
- 'ReleephProjectTransaction' => 'applications/releeph/storage/ReleephProjectTransaction.php',
- 'ReleephProjectTransactionQuery' => 'applications/releeph/query/ReleephProjectTransactionQuery.php',
'ReleephProjectViewController' => 'applications/releeph/controller/project/ReleephProjectViewController.php',
'ReleephReasonFieldSpecification' => 'applications/releeph/field/specification/ReleephReasonFieldSpecification.php',
'ReleephRequest' => 'applications/releeph/storage/ReleephRequest.php',
@@ -5490,6 +5490,8 @@
'ReleephPHIDTypeRequest' => 'PhabricatorPHIDType',
'ReleephProductActionController' => 'ReleephProductController',
'ReleephProductController' => 'ReleephController',
+ 'ReleephProductTransaction' => 'PhabricatorApplicationTransaction',
+ 'ReleephProductTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'ReleephProject' =>
array(
0 => 'ReleephDAO',
@@ -5498,7 +5500,7 @@
'ReleephProjectController' => 'ReleephController',
'ReleephProjectCreateController' => 'ReleephProjectController',
'ReleephProjectEditController' => 'ReleephProjectController',
- 'ReleephProjectHistoryController' => 'ReleephProjectController',
+ 'ReleephProjectHistoryController' => 'ReleephProductController',
'ReleephProjectListController' =>
array(
0 => 'ReleephController',
@@ -5506,8 +5508,6 @@
),
'ReleephProjectQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'ReleephProjectSearchEngine' => 'PhabricatorApplicationSearchEngine',
- 'ReleephProjectTransaction' => 'PhabricatorApplicationTransaction',
- 'ReleephProjectTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'ReleephProjectViewController' =>
array(
0 => 'ReleephProjectController',
diff --git a/src/applications/releeph/controller/project/ReleephProjectHistoryController.php b/src/applications/releeph/controller/project/ReleephProjectHistoryController.php
--- a/src/applications/releeph/controller/project/ReleephProjectHistoryController.php
+++ b/src/applications/releeph/controller/project/ReleephProjectHistoryController.php
@@ -1,34 +1,34 @@
<?php
-final class ReleephProjectHistoryController extends ReleephProjectController {
+final class ReleephProjectHistoryController extends ReleephProductController {
private $id;
public function willProcessRequest(array $data) {
$this->id = $data['projectID'];
- parent::willProcessRequest($data);
}
public function processRequest() {
$request = $this->getRequest();
$viewer = $request->getUser();
- $project = id(new ReleephProjectQuery())
+ $product = id(new ReleephProjectQuery())
->setViewer($viewer)
->withIDs(array($this->id))
->executeOne();
- if (!$project) {
+ if (!$product) {
return new Aphront404Response();
}
+ $this->setProduct($product);
- $xactions = id(new ReleephProjectTransactionQuery())
+ $xactions = id(new ReleephProductTransactionQuery())
->setViewer($viewer)
- ->withObjectPHIDs(array($project->getPHID()))
+ ->withObjectPHIDs(array($product->getPHID()))
->execute();
$timeline = id(new PhabricatorApplicationTransactionView())
->setUser($viewer)
- ->setObjectPHID($project->getPHID())
+ ->setObjectPHID($product->getPHID())
->setTransactions($xactions);
$crumbs = $this->buildApplicationCrumbs();
@@ -40,7 +40,7 @@
$timeline,
),
array(
- 'title' => pht('Project History'),
+ 'title' => pht('Product History'),
'device' => true,
));
}
diff --git a/src/applications/releeph/query/ReleephProjectTransactionQuery.php b/src/applications/releeph/query/ReleephProductTransactionQuery.php
rename from src/applications/releeph/query/ReleephProjectTransactionQuery.php
rename to src/applications/releeph/query/ReleephProductTransactionQuery.php
--- a/src/applications/releeph/query/ReleephProjectTransactionQuery.php
+++ b/src/applications/releeph/query/ReleephProductTransactionQuery.php
@@ -1,10 +1,10 @@
<?php
-final class ReleephProjectTransactionQuery
+final class ReleephProductTransactionQuery
extends PhabricatorApplicationTransactionQuery {
public function getTemplateApplicationTransaction() {
- return new ReleephProjectTransaction();
+ return new ReleephProductTransaction();
}
}
diff --git a/src/applications/releeph/storage/ReleephProjectTransaction.php b/src/applications/releeph/storage/ReleephProductTransaction.php
rename from src/applications/releeph/storage/ReleephProjectTransaction.php
rename to src/applications/releeph/storage/ReleephProductTransaction.php
--- a/src/applications/releeph/storage/ReleephProjectTransaction.php
+++ b/src/applications/releeph/storage/ReleephProductTransaction.php
@@ -1,6 +1,6 @@
<?php
-final class ReleephProjectTransaction
+final class ReleephProductTransaction
extends PhabricatorApplicationTransaction {
public function getApplicationName() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 2:48 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7332991
Default Alt Text
D8633.diff (6 KB)
Attached To
Mode
D8633: Rename Releeph "Project" transactions to "Product"
Attached
Detach File
Event Timeline
Log In to Comment