Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/189313
Change subject: GlobalRenameQueue: Adjust sorting on /closed
......................................................................
GlobalRenameQueue: Adjust sorting on /closed
* Sort descending, so recently closed requests are on top
* Order by the closed timestamp instead of requested
Bug: T88886
Change-Id: I08991f986b8cb4ae9fd7ac8d0105ee4c40b51088
---
M includes/specials/SpecialGlobalRenameQueue.php
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/13/189313/1
diff --git a/includes/specials/SpecialGlobalRenameQueue.php
b/includes/specials/SpecialGlobalRenameQueue.php
index f241c8e..12deadf 100644
--- a/includes/specials/SpecialGlobalRenameQueue.php
+++ b/includes/specials/SpecialGlobalRenameQueue.php
@@ -502,6 +502,12 @@
$this->mDb = CentralAuthUser::getCentralSlaveDB();
$this->setLimit( 25 );
parent::__construct( $context );
+
+ if ( $this->showOpenRequests() ) {
+ $this->mDefaultDirection = self::DIR_ASCENDING;
+ } else {
+ $this->mDefaultDirection = self::DIR_DESCENDING;
+ }
}
protected function showOpenRequests() {
@@ -636,7 +642,11 @@
* @return string
*/
public function getDefaultSort() {
- return 'rq_requested_ts';
+ if ( $this->showOpenRequests() ) {
+ return 'rq_requested_ts';
+ } else {
+ return 'rq_completed_ts';
+ }
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/189313
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I08991f986b8cb4ae9fd7ac8d0105ee4c40b51088
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits