Sumit has uploaded a new change for review. https://gerrit.wikimedia.org/r/240975
Change subject: Gather sort single user lists by time ...................................................................... Gather sort single user lists by time Sort lists of a single user with last modified list first. Bug: T94762 Change-Id: I8ea4520b5ec46dfa86526f28149ccee4becb80db --- M includes/api/ApiQueryLists.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather refs/changes/75/240975/1 diff --git a/includes/api/ApiQueryLists.php b/includes/api/ApiQueryLists.php index e732f44..2b50dac 100644 --- a/includes/api/ApiQueryLists.php +++ b/includes/api/ApiQueryLists.php @@ -122,7 +122,7 @@ } else { $this->addFields( array( 'isWl' => "gl_label=''" ) ); } - $this->addFieldsIf( 'gl_updated', $fld_updated || $mode ); + $this->addFieldsIf( 'gl_updated', $fld_updated || $mode || $fld_owner || $owner ); $this->addFieldsIf( 'gl_perm', $fld_public ); $this->addFieldsIf( 'gl_perm_override', $fld_public ); $this->addFieldsIf( 'gl_flag_count', $fld_public ); @@ -243,9 +243,9 @@ return "{$row->gl_user}|{$row->gl_label}"; }; } else { - $this->addOption( 'ORDER BY', 'gl_label' ); + $this->addOption( 'ORDER BY', 'gl_updated DESC, gl_id DESC' ); $getContinueEnumParameter = function( $row ) { - return $row->gl_label; + return "{$row->gl_updated}|{$row->gl_id}"; }; } -- To view, visit https://gerrit.wikimedia.org/r/240975 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8ea4520b5ec46dfa86526f28149ccee4becb80db Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Gather Gerrit-Branch: master Gerrit-Owner: Sumit <asthana.sumi...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits