Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14058665
D12357.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
D12357.diff
View Options
diff --git a/src/applications/project/query/PhabricatorProjectQuery.php b/src/applications/project/query/PhabricatorProjectQuery.php
--- a/src/applications/project/query/PhabricatorProjectQuery.php
+++ b/src/applications/project/query/PhabricatorProjectQuery.php
@@ -95,16 +95,30 @@
return $this;
}
- protected function getPagingColumn() {
- return 'name';
+ protected function getDefaultOrderVector() {
+ return array('name');
}
- protected function getPagingValue($result) {
- return $result->getName();
+ public function getOrderableColumns() {
+ return array(
+ 'name' => array(
+ 'table' => $this->getPrimaryTableAlias(),
+ 'column' => 'name',
+ 'reverse' => true,
+ 'type' => 'string',
+ 'unique' => true,
+ ),
+ );
+ }
+
+ protected function getPagingValueMap($cursor, array $keys) {
+ return array(
+ 'name' => $cursor,
+ );
}
- protected function getReversePaging() {
- return true;
+ protected function getPagingValue($result) {
+ return $result->getName();
}
protected function loadPage() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 1:40 PM (23 h, 4 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719082
Default Alt Text
D12357.diff (1 KB)
Attached To
Mode
D12357: Modernize ProjectQuery paging/ordering
Attached
Detach File
Event Timeline
Log In to Comment