allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject allura git commit: [#8232] Bump length of thread ID to avoid intermittent collisions
Date Thu, 20 Sep 2018 15:34:20 GMT
Repository: allura
Updated Branches:
  refs/heads/kt/8232 [created] 5ad16d621


[#8232] Bump length of thread ID to avoid intermittent collisions


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

Branch: refs/heads/kt/8232
Commit: 5ad16d621746aeb6044719fc3367677057eb54c8
Parents: 411f59b
Author: Kenton Taylor <ktaylor@slashdotmedia.com>
Authored: Thu Sep 20 15:34:04 2018 +0000
Committer: Kenton Taylor <ktaylor@slashdotmedia.com>
Committed: Thu Sep 20 15:34:04 2018 +0000

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


http://git-wip-us.apache.org/repos/asf/allura/blob/5ad16d62/Allura/allura/model/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index 61100e2..d6dc8d7 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -144,7 +144,7 @@ class Thread(Artifact, ActivityObject):
         ]
     type_s = 'Thread'
 
-    _id = FieldProperty(str, if_missing=lambda: h.nonce(8))
+    _id = FieldProperty(str, if_missing=lambda: h.nonce(10))
     discussion_id = ForeignIdProperty(Discussion)
     ref_id = ForeignIdProperty('ArtifactReference')
     subject = FieldProperty(str, if_missing='')


Mime
View raw message