Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15450076
D7862.id17790.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D7862.id17790.diff
View Options
Index: resources/sql/patches/20131231.dropshortcut.sql
===================================================================
--- /dev/null
+++ resources/sql/patches/20131231.dropshortcut.sql
@@ -0,0 +1 @@
+DROP TABLE {$NAMESPACE}_repository.repository_shortcut;
Index: src/__phutil_library_map__.php
===================================================================
--- src/__phutil_library_map__.php
+++ src/__phutil_library_map__.php
@@ -1829,7 +1829,6 @@
'PhabricatorRepositoryPushLogSearchEngine' => 'applications/repository/query/PhabricatorRepositoryPushLogSearchEngine.php',
'PhabricatorRepositoryQuery' => 'applications/repository/query/PhabricatorRepositoryQuery.php',
'PhabricatorRepositorySearchEngine' => 'applications/repository/query/PhabricatorRepositorySearchEngine.php',
- 'PhabricatorRepositoryShortcut' => 'applications/repository/storage/PhabricatorRepositoryShortcut.php',
'PhabricatorRepositoryStatusMessage' => 'applications/repository/storage/PhabricatorRepositoryStatusMessage.php',
'PhabricatorRepositorySvnCommitChangeParserWorker' => 'applications/repository/worker/commitchangeparser/PhabricatorRepositorySvnCommitChangeParserWorker.php',
'PhabricatorRepositorySvnCommitMessageParserWorker' => 'applications/repository/worker/commitmessageparser/PhabricatorRepositorySvnCommitMessageParserWorker.php',
@@ -4448,7 +4447,6 @@
'PhabricatorRepositoryPushLogSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PhabricatorRepositoryQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorRepositorySearchEngine' => 'PhabricatorApplicationSearchEngine',
- 'PhabricatorRepositoryShortcut' => 'PhabricatorRepositoryDAO',
'PhabricatorRepositoryStatusMessage' => 'PhabricatorRepositoryDAO',
'PhabricatorRepositorySvnCommitChangeParserWorker' => 'PhabricatorRepositoryCommitChangeParserWorker',
'PhabricatorRepositorySvnCommitMessageParserWorker' => 'PhabricatorRepositoryCommitMessageParserWorker',
Index: src/applications/diffusion/controller/DiffusionRepositoryListController.php
===================================================================
--- src/applications/diffusion/controller/DiffusionRepositoryListController.php
+++ src/applications/diffusion/controller/DiffusionRepositoryListController.php
@@ -17,7 +17,6 @@
$request = $this->getRequest();
$controller = id(new PhabricatorApplicationSearchController($request))
->setQueryKey($this->queryKey)
- ->setPreface($this->buildShortcuts())
->setSearchEngine(new PhabricatorRepositorySearchEngine())
->setNavigation($this->buildSideNavView());
@@ -115,33 +114,4 @@
return $crumbs;
}
- private function buildShortcuts() {
- $shortcuts = id(new PhabricatorRepositoryShortcut())->loadAll();
- if ($shortcuts) {
- $shortcuts = msort($shortcuts, 'getSequence');
-
- $rows = array();
- foreach ($shortcuts as $shortcut) {
- $rows[] = array(
- $shortcut->getName(),
- $shortcut->getHref(),
- $shortcut->getDescription(),
- );
- }
-
- $list = new PHUIObjectItemListView();
- foreach ($rows as $row) {
- $item = id(new PHUIObjectItemView())
- ->setHeader($row[0])
- ->setHref($row[1])
- ->setSubhead(($row[2] ? $row[2] : pht('No Description')));
- $list->addItem($item);
- }
- $shortcut_panel = array($list, phutil_tag('hr'));
- } else {
- $shortcut_panel = null;
- }
- return $shortcut_panel;
- }
-
}
Index: src/applications/repository/storage/PhabricatorRepositoryShortcut.php
===================================================================
--- src/applications/repository/storage/PhabricatorRepositoryShortcut.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-final class PhabricatorRepositoryShortcut extends PhabricatorRepositoryDAO {
-
- protected $name;
- protected $href;
- protected $description;
- protected $sequence;
-
- public function getConfiguration() {
- return array(
- self::CONFIG_TIMESTAMPS => false,
- ) + parent::getConfiguration();
- }
-
-}
Index: src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
===================================================================
--- src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
+++ src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
@@ -1856,6 +1856,10 @@
'type' => 'sql',
'name' => $this->getPatchPath('20131227.heraldobject.sql'),
),
+ '20131231.dropshortcut.sql' => array(
+ 'type' => 'sql',
+ 'name' => $this->getPatchPath('20131231.dropshortcut.sql'),
+ ),
);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 29, 1:45 PM (1 w, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7726212
Default Alt Text
D7862.id17790.diff (4 KB)
Attached To
Mode
D7862: Remove repository shortcuts
Attached
Detach File
Event Timeline
Log In to Comment