allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/3] allura git commit: [#8215] Personal Dashboard - Sort based on 'mod_date' descending order
Date Fri, 06 Jul 2018 18:26:23 GMT
Repository: allura
Updated Branches:
  refs/heads/master 1d155ce85 -> a1181f25f


[#8215] Personal Dashboard - Sort based on 'mod_date' descending order


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/a1181f25
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a1181f25
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a1181f25

Branch: refs/heads/master
Commit: a1181f25f0f982af095393dacd6ba4ca8852225b
Parents: 762f993
Author: deshanigtk <deshani.14@cse.mrt.ac.lk>
Authored: Fri Jul 6 21:56:15 2018 +0530
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jul 6 14:18:59 2018 -0400

----------------------------------------------------------------------
 Allura/allura/model/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/a1181f25/Allura/allura/model/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
index cd48331..8ebef71 100644
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -742,7 +742,7 @@ class User(MappedClass, ActivityNode, ActivityObject, SearchIndexable):
 
         from .repository import MergeRequest
 
-        return MergeRequest.query.find({'creator_id': self._id}).sort('mod_date', pymongo.ASCENDING)
+        return MergeRequest.query.find({'creator_id': self._id}).sort('mod_date', pymongo.DESCENDING)
 
     def set_password(self, new_password):
         return plugin.AuthenticationProvider.get(request).set_password(


Mime
View raw message