You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2021/10/29 18:08:08 UTC

[allura] branch master updated (f2f35a3 -> de82c32)

This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git.


    from f2f35a3  dataclasses is needed on py36 but cannot be installed by py37. OK to not declare it here, it'll get pulled in by werkzeug if needed
     new 59b3f5d  Add post/forum_post index.  NEEDS INSURE INDEX
     new de82c32  Fix index definition from [c65ce7a46]

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Allura/allura/model/discuss.py | 4 +++-
 Allura/allura/model/index.py   | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

[allura] 02/02: Fix index definition from [c65ce7a46]

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit de82c3256823c60fccda8e9fad7427b011c78d96
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Thu Oct 28 15:57:04 2021 -0400

    Fix index definition from [c65ce7a46]
---
 Allura/allura/model/index.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/model/index.py b/Allura/allura/model/index.py
index 61a2393..0842436 100644
--- a/Allura/allura/model/index.py
+++ b/Allura/allura/model/index.py
@@ -110,7 +110,7 @@ class Shortlink(MappedClass):
         name = str('shortlink')
         indexes = [
             'ref_id',  # for from_artifact() and index_tasks.py:del_artifacts
-            'project_id', 'link',  # used by from_links()  More helpful to have project_id first, for other queries
+            ('project_id', 'link',)  # used by from_links()  More helpful to have project_id first, for other queries
         ]
 
     query: 'Query[Shortlink]'

[allura] 01/02: Add post/forum_post index. NEEDS INSURE INDEX

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 59b3f5de9b17d5e021bd9d2599e9dc740f0421ff
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Mon Oct 25 11:42:29 2021 -0400

    Add post/forum_post index.  NEEDS INSURE INDEX
---
 Allura/allura/model/discuss.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index fd1b423..83c1531 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -517,7 +517,9 @@ class Post(Message, VersionedArtifact, ActivityObject, ReactableArtifact):
         indexes = [
             # used in general lookups, last_post, etc
             ('discussion_id', 'status', 'timestamp'),
-            'thread_id'
+            'thread_id',
+            # for find_posts/query_posts, including full_slug sort which is useful on super big threads
+            ('deleted', 'discussion_id', 'thread_id', 'full_slug'),
         ]
 
     query: 'Query[Post]'