Skip to content

feat(ACT-432): add Group Community TA audience for cohorted content_reported notifications#93

Draft
pavanhalesh wants to merge 2 commits intoedx:release-ulmofrom
pavanhalesh:pavanhalesh/ACT-432-group_community_ta_audience_v2
Draft

feat(ACT-432): add Group Community TA audience for cohorted content_reported notifications#93
pavanhalesh wants to merge 2 commits intoedx:release-ulmofrom
pavanhalesh:pavanhalesh/ACT-432-group_community_ta_audience_v2

Conversation

@pavanhalesh
Copy link
Member

What: Added GroupTAinCohortFilter to include Group Community TA (Group Moderator) users in content_reported notifications only when they belong to the same cohort as the reported content.

How:

Added new audience filter GroupTAinCohortFilter in notifications.

Added filter to content_reported in base_notification.py.

Updated discussion notification sender to pass cohort_for_group_tas (from thread group_id) into audience_filters.

Testing (devstack): UI blocked due to Discussion/MongoDB hostname issue, so validated via Django shell:

Cohort A → returns group_ta_a

Cohort B → returns group_ta_b

Empty cohort list → []

Negative: removing group_ta_a from Cohort A makes filter return [], adding back restores.

Files changed:

openedx/core/djangoapps/notifications/audience_filters.py

openedx/core/djangoapps/notifications/base_notification.py

lms/djangoapps/discussion/rest_api/discussions_notifications.py

@asharma4-sonata please review this

Copy link

@asharma4-sonata asharma4-sonata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While reviewing the Jira ticket, I noticed inconsistencies in branch names, PR titles, and commit messages. I’ve created a Confluence document to clarify the standards. Please take a moment to review it when you can -

https://2u-internal.atlassian.net/wiki/spaces/Activation/pages/2717810709/The+edX+Code+Flow+Saga+Branch+PR+Conventions+and+Forked+Repository+Management

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.

2 participants