You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2026/09/18 21:48:05 UTC
(allura) branch db/8624b updated (6a99ac718 -> d5bb2bd09)
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a change to branch db/8624b
in repository https://gitbox.apache.org/repos/asf/allura.git
from 6a99ac718 [#8624] edit support for OAuth1 and OAuth2 apps
new fcf775cf8 fixup! [#8624] remove Feed entries when content is deleted or restricted
new d5bb2bd09 fixup! [#8624] mark tests that need network, and a --no-network flag to skip them
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 | 2 +-
Allura/allura/tests/functional/test_auth.py | 2 ++
Allura/allura/tests/functional/test_feeds.py | 6 ++++++
3 files changed, 9 insertions(+), 1 deletion(-)
(allura) 01/02: fixup! [#8624] remove Feed entries when content is deleted or restricted
Posted by br...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch db/8624b
in repository https://gitbox.apache.org/repos/asf/allura.git
commit fcf775cf8926abf4bb7c3ca2395560fe40359bf9
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri Sep 18 17:46:39 2026 -0400
fixup! [#8624] remove Feed entries when content is deleted or restricted
Co-Authored-By: Claude Opus 5 <no...@anthropic.com>
Claude-Session: https://claude.ai/code/session_012rj2duDh7JnbTnzsSVhJRj
---
Allura/allura/model/discuss.py | 2 +-
Allura/allura/tests/functional/test_feeds.py | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index f8f341fc8..f596775e2 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -854,7 +854,7 @@ def spam(self, submit_spam_feedback=True):
self.thread.update_stats()
def undo(self, prev_status):
- if prev_status in ('ok', 'pending'):
+ if prev_status in ('ok', 'pending') and self.status != prev_status:
self.status = prev_status
self.thread.post_to_feed(self) # spam() revoked it
session(self).flush(self)
diff --git a/Allura/allura/tests/functional/test_feeds.py b/Allura/allura/tests/functional/test_feeds.py
index a23c06e07..b02d22ec7 100644
--- a/Allura/allura/tests/functional/test_feeds.py
+++ b/Allura/allura/tests/functional/test_feeds.py
@@ -123,6 +123,12 @@ def test_wiki_feed_drops_spammed_comment(self):
ThreadLocalODMSession.flush_all()
assert 'spammy comment' in self.app.get('/wiki/feed.rss', extra_environ=ANON)
+ # undoing again is a no-op; it must not file a second entry
+ h.set_context('test', 'wiki', neighborhood='Projects')
+ M.Post.query.get(text='spammy comment').undo('ok')
+ ThreadLocalODMSession.flush_all()
+ assert self.app.get('/wiki/feed.rss', extra_environ=ANON).text.count('spammy comment') == 1
+
@td.with_wiki
def test_wiki_feed_drops_hard_deleted_comment(self):
h.set_context('test', 'wiki', neighborhood='Projects')
(allura) 02/02: fixup! [#8624] mark tests that need network, and a --no-network flag to skip them
Posted by br...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch db/8624b
in repository https://gitbox.apache.org/repos/asf/allura.git
commit d5bb2bd09da3d9f1bbdb31e03239ecc33589556d
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri Sep 18 17:46:40 2026 -0400
fixup! [#8624] mark tests that need network, and a --no-network flag to skip them
Co-Authored-By: Claude Opus 5 <no...@anthropic.com>
Claude-Session: https://claude.ai/code/session_012rj2duDh7JnbTnzsSVhJRj
---
Allura/allura/tests/functional/test_auth.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Allura/allura/tests/functional/test_auth.py b/Allura/allura/tests/functional/test_auth.py
index 0cce13c4b..dbe3a53dd 100644
--- a/Allura/allura/tests/functional/test_auth.py
+++ b/Allura/allura/tests/functional/test_auth.py
@@ -759,6 +759,7 @@ def test_change_password(self):
@patch('allura.lib.plugin.AuthenticationProvider.hibp_password_check_enabled', Mock(return_value=True))
@td.with_user_project('test-admin')
+ @pytest.mark.network
def test_change_password_hibp(self):
self.app.get('/').follow() # establish session
# Get and assert user with password reset token.
@@ -2043,6 +2044,7 @@ def test_provider_disabled(self, AP):
@patch('allura.lib.plugin.AuthenticationProvider.hibp_password_check_enabled', Mock(return_value=True))
@patch('allura.tasks.mail_tasks.sendsimplemail')
@patch('allura.lib.helpers.gen_message_id')
+ @pytest.mark.network
def test_pwd_reset_hibp_check(self, gen_message_id, sendmail):
self.app.get('/').follow() # establish session
user = M.User.query.get(username='test-admin')