Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments count includes deleted comments, which it shouldn't

+7
−0

Using this post purely as an example, because I'm quite sure that the problem is general. Observe:

At first, we are told that there are "4 comments":

Screenshot showing "4 comments"

Expanding inline, the summary says 4 of 4 comments are being shown, so where are the other three?

Screenshot showing "showing 4 of 4 comments" but only showing one comment

The mystery is resolved once one goes to the full thread page, instead of looking at the inline view:

Screenshot showing "Skipping 3 deleted comments"

The number of comments as being reported in the inline comments view / post UI should match what's actually visible to the user. In the above example, the "General comments" thread would be reported as having only one comment; if one navigates to the comment thread page, then it might be reasonable to also indicate the existence of the three now-deleted comments, but since those are invisible to pretty much everyone, they shouldn't be included in the comment count.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Related posts (1 comment)

1 answer

+0
−0

We fixed the inconsistency a different way. Instead of computing the numbers for all threads at page-load time, we still report the full number of comments, but when you expand the comment thread you see that there are deleted ones, like this:

"skipping 3 deleted comments" before the one visible comment

Expanding the thread now accounts for all of the comments so the numbers add up. I can't find an example right now to confirm, but I believe that if there are lots of comments and some early ones are deleted, you'll still see five (undeleted) comments along with the "skipping N" entries.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »