@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add expected schemata for Fund, Files, Flags and Legalpad

Summary: Ref T1191. Nothing too exciting in these.

Test Plan: Saw more blue in UI.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

Differential Revision: https://secure.phabricator.com/D10521

+204
+8
src/__phutil_library_map__.php
··· 683 683 'FundInitiativeTransaction' => 'applications/fund/storage/FundInitiativeTransaction.php', 684 684 'FundInitiativeTransactionQuery' => 'applications/fund/query/FundInitiativeTransactionQuery.php', 685 685 'FundInitiativeViewController' => 'applications/fund/controller/FundInitiativeViewController.php', 686 + 'FundSchemaSpec' => 'applications/fund/storage/FundSchemaSpec.php', 686 687 'HarbormasterBuild' => 'applications/harbormaster/storage/build/HarbormasterBuild.php', 687 688 'HarbormasterBuildAbortedException' => 'applications/harbormaster/exception/HarbormasterBuildAbortedException.php', 688 689 'HarbormasterBuildActionController' => 'applications/harbormaster/controller/HarbormasterBuildActionController.php', ··· 860 861 'LegalpadDocumentSignatureViewController' => 'applications/legalpad/controller/LegalpadDocumentSignatureViewController.php', 861 862 'LegalpadMockMailReceiver' => 'applications/legalpad/mail/LegalpadMockMailReceiver.php', 862 863 'LegalpadReplyHandler' => 'applications/legalpad/mail/LegalpadReplyHandler.php', 864 + 'LegalpadSchemaSpec' => 'applications/legalpad/storage/LegalpadSchemaSpec.php', 863 865 'LegalpadTransaction' => 'applications/legalpad/storage/LegalpadTransaction.php', 864 866 'LegalpadTransactionComment' => 'applications/legalpad/storage/LegalpadTransactionComment.php', 865 867 'LegalpadTransactionQuery' => 'applications/legalpad/query/LegalpadTransactionQuery.php', ··· 1611 1613 'PhabricatorFileLinkView' => 'view/layout/PhabricatorFileLinkView.php', 1612 1614 'PhabricatorFileListController' => 'applications/files/controller/PhabricatorFileListController.php', 1613 1615 'PhabricatorFileQuery' => 'applications/files/query/PhabricatorFileQuery.php', 1616 + 'PhabricatorFileSchemaSpec' => 'applications/files/storage/PhabricatorFileSchemaSpec.php', 1614 1617 'PhabricatorFileSearchEngine' => 'applications/files/query/PhabricatorFileSearchEngine.php', 1615 1618 'PhabricatorFileStorageBlob' => 'applications/files/storage/PhabricatorFileStorageBlob.php', 1616 1619 'PhabricatorFileStorageConfigurationException' => 'applications/files/exception/PhabricatorFileStorageConfigurationException.php', ··· 1643 1646 'PhabricatorFlagEditController' => 'applications/flag/controller/PhabricatorFlagEditController.php', 1644 1647 'PhabricatorFlagListController' => 'applications/flag/controller/PhabricatorFlagListController.php', 1645 1648 'PhabricatorFlagQuery' => 'applications/flag/query/PhabricatorFlagQuery.php', 1649 + 'PhabricatorFlagSchemaSpec' => 'applications/flag/storage/PhabricatorFlagSchemaSpec.php', 1646 1650 'PhabricatorFlagSearchEngine' => 'applications/flag/query/PhabricatorFlagSearchEngine.php', 1647 1651 'PhabricatorFlagSelectControl' => 'applications/flag/view/PhabricatorFlagSelectControl.php', 1648 1652 'PhabricatorFlaggableInterface' => 'applications/flag/interface/PhabricatorFlaggableInterface.php', ··· 3516 3520 'FundInitiativeTransaction' => 'PhabricatorApplicationTransaction', 3517 3521 'FundInitiativeTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 3518 3522 'FundInitiativeViewController' => 'FundController', 3523 + 'FundSchemaSpec' => 'PhabricatorConfigSchemaSpec', 3519 3524 'HarbormasterBuild' => array( 3520 3525 'HarbormasterDAO', 3521 3526 'PhabricatorPolicyInterface', ··· 3731 3736 'LegalpadDocumentSignatureViewController' => 'LegalpadController', 3732 3737 'LegalpadMockMailReceiver' => 'PhabricatorObjectMailReceiver', 3733 3738 'LegalpadReplyHandler' => 'PhabricatorMailReplyHandler', 3739 + 'LegalpadSchemaSpec' => 'PhabricatorConfigSchemaSpec', 3734 3740 'LegalpadTransaction' => 'PhabricatorApplicationTransaction', 3735 3741 'LegalpadTransactionComment' => 'PhabricatorApplicationTransactionComment', 3736 3742 'LegalpadTransactionQuery' => 'PhabricatorApplicationTransactionQuery', ··· 4541 4547 'PhabricatorFileLinkView' => 'AphrontView', 4542 4548 'PhabricatorFileListController' => 'PhabricatorFileController', 4543 4549 'PhabricatorFileQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4550 + 'PhabricatorFileSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4544 4551 'PhabricatorFileSearchEngine' => 'PhabricatorApplicationSearchEngine', 4545 4552 'PhabricatorFileStorageBlob' => 'PhabricatorFileDAO', 4546 4553 'PhabricatorFileStorageConfigurationException' => 'Exception', ··· 4573 4580 'PhabricatorFlagEditController' => 'PhabricatorFlagController', 4574 4581 'PhabricatorFlagListController' => 'PhabricatorFlagController', 4575 4582 'PhabricatorFlagQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4583 + 'PhabricatorFlagSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4576 4584 'PhabricatorFlagSearchEngine' => 'PhabricatorApplicationSearchEngine', 4577 4585 'PhabricatorFlagSelectControl' => 'AphrontFormControl', 4578 4586 'PhabricatorFlaggableInterface' => 'PhabricatorPHIDInterface',
+20
src/applications/files/storage/PhabricatorFile.php
··· 65 65 self::CONFIG_SERIALIZATION => array( 66 66 'metadata' => self::SERIALIZATION_JSON, 67 67 ), 68 + self::CONFIG_COLUMN_SCHEMA => array( 69 + 'name' => 'text255?', 70 + 'mimeType' => 'text255?', 71 + 'byteSize' => 'uint64?', 72 + 'storageEngine' => 'text32', 73 + 'storageFormat' => 'text32', 74 + 'storageHandle' => 'text255', 75 + 'authorPHID' => 'phid?', 76 + 'secretKey' => 'bytes20?', 77 + 'contentHash' => 'bytes40?', 78 + 'ttl' => 'epoch?', 79 + 'isExplicitUpload' => 'bool?', 80 + 'mailKey' => 'bytes20', 81 + ), 82 + self::CONFIG_KEY_SCHEMA => array( 83 + 'key_phid' => null, 84 + 'phid' => array( 85 + 'columns' => array('phid'), 86 + ), 87 + ), 68 88 ) + parent::getConfiguration(); 69 89 } 70 90
+20
src/applications/files/storage/PhabricatorFileSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhabricatorFileSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('PhabricatorFileDAO'); 8 + 9 + $this->buildEdgeSchemata(new PhabricatorFile()); 10 + 11 + $this->buildTransactionSchema( 12 + new PhabricatorFileTransaction(), 13 + new PhabricatorFileTransactionComment()); 14 + 15 + $this->buildTransactionSchema( 16 + new PhabricatorMacroTransaction(), 17 + new PhabricatorMacroTransactionComment()); 18 + } 19 + 20 + }
+10
src/applications/files/storage/PhabricatorFileTransactionComment.php
··· 12 12 return ($this->getTransactionPHID() != null); 13 13 } 14 14 15 + public function getConfiguration() { 16 + $config = parent::getConfiguration(); 17 + $config[self::CONFIG_KEY_SCHEMA] = array( 18 + 'key_draft' => array( 19 + 'columns' => array('authorPHID', 'transactionPHID'), 20 + ), 21 + ) + $config[self::CONFIG_KEY_SCHEMA]; 22 + return $config; 23 + } 24 + 15 25 }
+13
src/applications/files/storage/PhabricatorTransformedFile.php
··· 6 6 protected $transform; 7 7 protected $transformedPHID; 8 8 9 + public function getConfiguration() { 10 + return array( 11 + self::CONFIG_COLUMN_SCHEMA => array( 12 + 'transform' => 'text255', 13 + ), 14 + self::CONFIG_KEY_SCHEMA => array( 15 + 'originalPHID' => array( 16 + 'columns' => array('originalPHID', 'transform'), 17 + ), 18 + ), 19 + ) + parent::getConfiguration(); 20 + } 21 + 9 22 }
+15
src/applications/flag/storage/PhabricatorFlag.php
··· 13 13 private $handle = self::ATTACHABLE; 14 14 private $object = self::ATTACHABLE; 15 15 16 + public function getConfiguration() { 17 + return array( 18 + self::CONFIG_COLUMN_SCHEMA => array( 19 + 'type' => 'text4', 20 + 'color' => 'uint32', 21 + 'note' => 'text', 22 + ), 23 + self::CONFIG_KEY_SCHEMA => array( 24 + 'ownerPHID' => array( 25 + 'columns' => array('ownerPHID', 'type', 'objectPHID'), 26 + ), 27 + ), 28 + ) + parent::getConfiguration(); 29 + } 30 + 16 31 public function getObject() { 17 32 return $this->assertAttached($this->object); 18 33 }
+10
src/applications/flag/storage/PhabricatorFlagSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhabricatorFlagSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('PhabricatorFlagDAO'); 8 + } 9 + 10 + }
+4
src/applications/fund/storage/FundBacker.php
··· 28 28 self::CONFIG_SERIALIZATION => array( 29 29 'properties' => self::SERIALIZATION_JSON, 30 30 ), 31 + self::CONFIG_COLUMN_SCHEMA => array( 32 + 'status' => 'text32', 33 + 'amountInCents' => 'uint32', 34 + ), 31 35 ) + parent::getConfiguration(); 32 36 } 33 37
+5
src/applications/fund/storage/FundInitiative.php
··· 48 48 public function getConfiguration() { 49 49 return array( 50 50 self::CONFIG_AUX_PHID => true, 51 + self::CONFIG_COLUMN_SCHEMA => array( 52 + 'name' => 'text255', 53 + 'description' => 'text', 54 + 'status' => 'text32', 55 + ), 51 56 ) + parent::getConfiguration(); 52 57 } 53 58
+17
src/applications/fund/storage/FundSchemaSpec.php
··· 1 + <?php 2 + 3 + final class FundSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('FundDAO'); 8 + $this->buildEdgeSchemata(new FundInitiative()); 9 + 10 + $this->buildTransactionSchema( 11 + new FundInitiativeTransaction()); 12 + 13 + $this->buildTransactionSchema( 14 + new FundBackerTransaction()); 15 + } 16 + 17 + }
+8
src/applications/legalpad/storage/LegalpadDocument.php
··· 54 54 self::CONFIG_SERIALIZATION => array( 55 55 'recentContributorPHIDs' => self::SERIALIZATION_JSON, 56 56 ), 57 + self::CONFIG_COLUMN_SCHEMA => array( 58 + 'title' => 'text255', 59 + 'contributorCount' => 'uint32', 60 + 'versions' => 'uint32', 61 + 'mailKey' => 'bytes20', 62 + 'signatureType' => 'text4', 63 + 'preamble' => 'text', 64 + ), 57 65 ) + parent::getConfiguration(); 58 66 } 59 67
+10
src/applications/legalpad/storage/LegalpadDocumentBody.php
··· 16 16 public function getConfiguration() { 17 17 return array( 18 18 self::CONFIG_AUX_PHID => true, 19 + self::CONFIG_COLUMN_SCHEMA => array( 20 + 'version' => 'uint32', 21 + 'title' => 'text255', 22 + 'text' => 'text?', 23 + ), 24 + self::CONFIG_KEY_SCHEMA => array( 25 + 'key_document' => array( 26 + 'columns' => array('documentPHID', 'version'), 27 + ), 28 + ), 19 29 ) + parent::getConfiguration(); 20 30 } 21 31
+11
src/applications/legalpad/storage/LegalpadDocumentSignature.php
··· 26 26 self::CONFIG_SERIALIZATION => array( 27 27 'signatureData' => self::SERIALIZATION_JSON, 28 28 ), 29 + self::CONFIG_COLUMN_SCHEMA => array( 30 + 'documentVersion' => 'uint32', 31 + 'signatureType' => 'text4', 32 + 'signerPHID' => 'phid?', 33 + 'signerName' => 'text255', 34 + 'signerEmail' => 'text255', 35 + 'secretKey' => 'bytes20', 36 + 'verified' => 'bool?', 37 + 'isExemption' => 'bool', 38 + 'exemptionPHID' => 'phid?', 39 + ), 29 40 ) + parent::getConfiguration(); 30 41 } 31 42
+15
src/applications/legalpad/storage/LegalpadSchemaSpec.php
··· 1 + <?php 2 + 3 + final class LegalpadSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('LegalpadDAO'); 8 + $this->buildEdgeSchemata(new LegalpadDocument()); 9 + 10 + $this->buildTransactionSchema( 11 + new LegalpadTransaction(), 12 + new LegalpadTransactionComment()); 13 + } 14 + 15 + }
+18
src/applications/legalpad/storage/LegalpadTransactionComment.php
··· 19 19 return ($this->getTransactionPHID() != null); 20 20 } 21 21 22 + public function getConfiguration() { 23 + $config = parent::getConfiguration(); 24 + $config[self::CONFIG_COLUMN_SCHEMA] = array( 25 + 'documentID' => 'id?', 26 + 'lineNumber' => 'uint32', 27 + 'lineLength' => 'uint32', 28 + 'fixedState' => 'text12?', 29 + 'hasReplies' => 'bool', 30 + 'replyToCommentPHID' => 'phid?', 31 + ) + $config[self::CONFIG_COLUMN_SCHEMA]; 32 + $config[self::CONFIG_KEY_SCHEMA] = array( 33 + 'key_draft' => array( 34 + 'columns' => array('authorPHID', 'documentID', 'transactionPHID'), 35 + ), 36 + ) + $config[self::CONFIG_KEY_SCHEMA]; 37 + return $config; 38 + } 39 + 22 40 }
+13
src/applications/macro/storage/PhabricatorFileImageMacro.php
··· 43 43 public function getConfiguration() { 44 44 return array( 45 45 self::CONFIG_AUX_PHID => true, 46 + self::CONFIG_COLUMN_SCHEMA => array( 47 + 'name' => 'text255', 48 + 'authorPHID' => 'phid?', 49 + 'isDisabled' => 'bool', 50 + 'audioPHID' => 'phid?', 51 + 'audioBehavior' => 'text64', 52 + 'mailKey' => 'bytes20', 53 + ), 54 + self::CONFIG_KEY_SCHEMA => array( 55 + 'name' => array( 56 + 'columns' => array('name'), 57 + ), 58 + ), 46 59 ) + parent::getConfiguration(); 47 60 } 48 61
+7
src/infrastructure/storage/lisk/LiskDAO.php
··· 1737 1737 self::SERIALIZATION_PHP => 'bytes', 1738 1738 ); 1739 1739 1740 + $binary_map = $this->getBinaryColumns(); 1741 + 1740 1742 $builtin = array( 1741 1743 'id' => 'id', 1742 1744 'phid' => 'phid', ··· 1770 1772 $map[$property] = $type; 1771 1773 continue; 1772 1774 } 1775 + } 1776 + 1777 + if (isset($binary_map[$property])) { 1778 + $map[$property] = 'bytes'; 1779 + continue; 1773 1780 } 1774 1781 1775 1782 // If the column is named `somethingPHID`, infer it is a PHID.