feat(#9255): adds androidApi service to calculate task notifications#9987
feat(#9255): adds androidApi service to calculate task notifications#9987jonathanbataire wants to merge 53 commits intomedic:masterfrom
Conversation
|
Hey @andrablaj this ready for review :) |
|
@dianabarsan, would you be available to review this PR? If not, please reach out to/assign other teammates who might be available. Thank you! |
dianabarsan
left a comment
There was a problem hiding this comment.
Great start and awesome work! I have some questions and suggestions inline. Please let me know if you have any questions.
|
|
||
| let notifications = taskDocs | ||
| .filter(task => { | ||
| return task.state === 'Ready' && task.emission.dueDate === today && |
There was a problem hiding this comment.
What about tasks that are overdue? I'm curious what this system is really trying to achieve.
If a user doesn't log in for one day, when a specific task is due, and logs in the next day when the task is overdue, they never get notified for it.
There was a problem hiding this comment.
i see that's one scenario that wasn't considered
yeah we can add overdue tasks
|
@lorerod Do you have some time to acceptance test this new feature? There is a corresponding cht-android PR: medic/cht-android#394 but that seems to not have been reviewed yet, and is required to fully acceptance test this. |
|
Thanks for looping me in, @dianabarsan ! |
|
This PR is now marked "stale" after 30 days without activity. It will be closed automatically in 10 days unless you add a comment, push new changes or remove the "stale" label. |
|
Are we collecting any telemetry data about how often we are checking for notifications? Basically, I would like to be able to tell from telemetry if notifications-checks are happening regularly throughout the day. (Looking for measurable data to be able to tell if the background notification checks in cht-android are happening as expected...) I did not see anything in the |
|
On a similar note to ☝️, @jonathanbataire @dianabarsan what do you think about exposing the |
|
@dianabarsan had an interesting though when we were discussing this functionality today and I wanted to continue the conversation here in case it is worth a pivot. The general idea is that the Then, the background worker in cht-android would not need a WebView/webapp to calculate the current notifications. When the cht-android app is closed, the notifications would only be powered based on the pre-loaded future notifications. This seems potentially viable since, in most cases, the user's data that would affect tasks is not be changing unless the user actually opens the app. So, future tasks should remain accurate enough. I do have a couple questions here:
|
|
Thanks @jkuester ! Just so we don't have the same conversation in multiple threads |
|
This PR is now marked "stale" after 30 days without activity. It will be closed automatically in 10 days unless you add a comment, push new changes or remove the "stale" label. |
Description
android.notification.tasks.contentTextfor translating notification content text.fixes #9255
Code review checklist
can_view_old_navigationpermission to see the old design. Test it has appropriate design for RTL languages.License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.