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

feat: Populate notification context with post, comment and response ids #36008

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

jawad-khan
Copy link
Contributor

Description

This change will populate notification context with post, comment and response ids. In mobile we need these ids to load relevant screen for a notification.

Useful information to include:

  • This change will effect all clients using notification get api.

Supporting information

https://2u-internal.atlassian.net/browse/LEARNER-10328

Testing instructions

Please provide detailed step-by-step instructions for testing this change.

Deadline

ASAP.

@@ -362,6 +373,12 @@ def send_reported_content_notification(self):
]}
self._send_course_wide_notification("content_reported", audience_filters, context)

def _populate_context_with_ids_for_mobile(self, context, additional_context=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is additional_context needed as parameter here? It is not being used in the code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Initially I added it to add more context but we don't need it now. Let me remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@muhammadadeeltajamul I have removed extra param.

@jawad-khan jawad-khan merged commit 76cceaa into master Dec 20, 2024
49 checks passed
@jawad-khan jawad-khan deleted the jawad/LEARNER-10328 branch December 20, 2024 10:23
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

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.

3 participants