Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment Mop: Fix two bugs in app relating to comments that should be removed staying visible #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fsvreddit
Copy link
Contributor

Closes #168
Closes #169

💸 TL;DR

In the latest release of Comment Mop, two regressions were introduced as described in the above two issues. The logic used to find comments to remove was improved to be more efficient, but this changed the behaviour compared to the original version.

🧪 Testing Steps / Validation

Create comment hierarchies on a post as described in the two issues.

Run Comment Mop against the top level comment in the hierarchy, once with "Ignore Distinguished" turned off, and again with it turned on.

Validate that the effect of mopping the thread is correct:

For #168, we should observe that the top level comment where Mop was run is correctly removed. For #169, we should observe that the mop continues below the distinguished comment.

Repeat for the post-level mop (only #169 needs to be tested this time). Observe that any comments beneath a distinguished comment are removed, but the distinguished comment is retained when "Ignore distinguished comments" is selected.

✅ Checks

  • CI tests (if present) are passing
  • Adheres to code style for repo
  • Contributor License Agreement (CLA) completed if not a Reddit employee

@fsvreddit fsvreddit changed the title Comment Mop: Ensure that the comment that Mop is run against is correctly removed Comment Mop: Fix two bugs in app relating to comments that should be removed staying visible Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant