Skip to content

Conversation

@rehmansheikh222
Copy link
Contributor

This PR fixes the MongoDB discussions backend where unread_comment_count was always 0 because BaseContents.override_query was injecting _type: "" when content_type was unset. The method now only adds the _type filter if content_type is defined, allowing read state queries to correctly count comment documents.

Fixes #264.

@rehmansheikh222 rehmansheikh222 force-pushed the fix-mongo-unread-comment-count branch from f54a4f1 to 8153396 Compare December 5, 2025 06:19
@taimoor-ahmed-1 taimoor-ahmed-1 merged commit aa4187d into openedx:master Dec 5, 2025
14 checks passed
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.

Unread comment count always coming as 0 for all posts with Mongodb Backend

2 participants