-
Notifications
You must be signed in to change notification settings - Fork 63
Group DB queries on pushing multiple notifications until we flush() #1161
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
Conversation
39d9452 to
42d64b0
Compare
42d64b0 to
86c3eb3
Compare
|
Rebased after merge of #1157 |
|
Please review @vitormattos @danxuliu so this goes in for 24 |
danxuliu
left a comment
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.
Other than the comments, code looks good (but I have not tested it).
danxuliu
left a comment
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.
Tested and, from my limited knowledge, works 👍
Note that I have not tested the scenario of having some device or status already loaded and then having to load some more when flushing the payloads (as I did not know how to trigger that :-) ); I just tested starting a call in Talk, which caused all the devices and statuses to be loaded in flushPayloads.
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
54b1d27 to
7024894
Compare
It is currently not possible without hardcoding something. There is no API call which sends a notification to 1 user and afterwards to a second set of users |
vitormattos
left a comment
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.
Do we have integration tests covering this?
|
Not really. The problem is there is no default API using this. We would need to add one. |
Uh oh!
There was an error while loading. Please reload this page.