-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
[Reminders app] Pass on logged in user ID to data update broadcast #2700
Conversation
@damagatchi retest this please |
// This is to be used to skip any cases that are not owned by the user but that might be | ||
// in the database at the time of the data refresh | ||
if (CommCareApplication.instance().getSession().isActive()) { | ||
i.putExtra("logged-in-user-id", CommCareApplication.instance().getCurrentUserId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be cc-logged-in-user-id
instead as per this PR ?
// This is to be used to skip any cases that are not owned by the user but that might be | ||
// in the database at the time of the data refresh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reword to - Used by external apps to do any user based filtering
@shubham1g5 these comments were not visible to me, were they pending still on your end? |
yeah I only submitted them yesterday. |
Summary
This PR includes the current user ID in the data update broadcast. The goal is to prevent CommCare users from being notified over reminders they have sent to other users. There are also changes required on the Reminders app side that are in this PR.
Safety Assurance