allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: Don't bother updating the solr index if there weren't actually any changes on the model object.
Date Wed, 24 Sep 2014 13:36:51 GMT
Repository: allura
Updated Branches:
  refs/heads/master 84a82c391 -> 6a45c32bd


Don't bother updating the solr index if there weren't actually any changes on the model object.

Sometimes you can set a field to a value that already has that value (so no net change), but
ming still marks the object as dirty (updated).


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

Branch: refs/heads/master
Commit: 6a45c32bd34fc39c1d8df053dd0a7debba9b896a
Parents: 84a82c3
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Wed Sep 24 13:35:39 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Sep 24 13:35:39 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/allura/blob/6a45c32b/Allura/allura/lib/search.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/search.py b/Allura/allura/lib/search.py
index 9c4a5f3..2ee9b82 100644
--- a/Allura/allura/lib/search.py
+++ b/Allura/allura/lib/search.py
@@ -83,7 +83,7 @@ class SearchIndexable(object):
         Values passed as old_doc and new_doc are original and modified
         versions of same object, represented as dictionaries.
         """
-        return True
+        return old_doc != new_doc
 
     def solarize(self):
         doc = self.index()


Mime
View raw message