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

Display correct comments count in 'view full discussion' link #20960

Merged
merged 4 commits into from
May 20, 2024

Conversation

lightalloy
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Bug Fix

Description

Show correct comments count in the "view full discussion" link. (based on comments display rules, for signed in users)
You can find more details about comments count and limitations in this pr description #20753

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

Visit an article page which has a lot of comments + has spam comments (with score below hiding threshold (-400)
The display_articles_count should be updated for this article (it's updated when one of its comments scores is updated (added))
"view full discussion" should include the correct comments count.

Added/updated tests?

  • Yes

@lightalloy lightalloy requested a review from a team as a code owner May 17, 2024 12:28
@lightalloy lightalloy requested review from maestromac and removed request for a team May 17, 2024 12:28
spec/requests/articles/articles_show_spec.rb Outdated Show resolved Hide resolved
spec/requests/articles/articles_show_spec.rb Outdated Show resolved Hide resolved
spec/requests/articles/articles_show_spec.rb Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented May 17, 2024

Uffizzi Ephemeral Environment Deploying

☁️ https://app.uffizzi.com/github.com/forem/forem/pull/20960

⚙️ Updating now by workflow run 9130521473.

What is Uffizzi? Learn more!

@lightalloy lightalloy added this pull request to the merge queue May 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 20, 2024
@benhalpern benhalpern merged commit a8ffeff into main May 20, 2024
32 checks passed
@benhalpern benhalpern deleted the lightalloy/view-full-comments-count branch May 20, 2024 14:49
Copy link
Contributor

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


Mac Siri seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix displayed article comment counts (take into account comments hidden after the author is assigned spam)
2 participants