Is rejected posts to top bar on user summary page working?

AI-generated summary

The discussion revolves around the display of rejected post counts on the user summary page in Discourse. pfaffman initially reported that rejected post counts were not appearing, despite seeing rejected posts in the review queue. Roman clarified that the count only appears if at least one queued post was rejected. pfaffman confirmed the issue persisted even after updating to Discourse 2.5.0.beta4. Roman later explained that the count was not being added because rejected posts don’t create post objects, and a fix was implemented to count review items directly. pfaffman confirmed the issue was resolved, with the count now displaying correctly.

Continuing the discussion from Add number of rejected posts to top bar on user summary page:

I’m looking at this now and am not seeing a rejected post count on the user card. I looked at the user.json output and don’t see the data there. Is the rejected count being added to the model?

Or, maybe I don’t understand something.

I just checked and this is working as intended.

The count is displayed on the user summary page if at least one queued post was rejected.

Here’s what I see:

https://SITE/review?additional_filters={}&sort_order=priority&status=rejected&username=BAD_PERSON

is showing a bunch of posts, but his user profile shows only deleted posts and not any rejected posts. (I checked again in safe-mode). These are posts that were caught with a watched-word filter and then rejected.

If the rejected posts count is the only value to show, the staff counters won’t be displayed. This PR will fix it:

https://github.com/discourse/discourse/pull/9845

Thanks, @pfaffman!

Just rebuilt and am on Discourse 2.5.0.beta4 - https://github.com/discourse/discourse version 68db5deaeca9e3b89501581abaf6e69a9f7ae76. Still don’t see rejected posts for that user. Did I jump the gun?

I made a wrong assumption when I originally added this count. Posts won’t be created if the item gets rejected.

https://review.discourse.org/t/fix-we-dont-create-a-post-object-if-the-queued-post-gets-rejected-we-need-to-count-review-items-directly-9856/12003/3

I tested here on meta and it’s working as expected now.

Hooray!

image