-
-
src/Lunr/Vortex/FCM/FCMBatchResponse.php (Diff revision 1) is it really a permutation matrix between those 4 values? i.e. a+c, a+d, b+c and b+d?
-
src/Lunr/Vortex/FCM/FCMBatchResponse.php (Diff revision 1) This sounds wrong. Whenever
Unknown
shows up in logs it should be considered a bug in the status mapping logic. Are we sure we don't know what the status here is and need more information to fix this later? If so, please add a comment to clarify this in the code. -
src/Lunr/Vortex/FCM/FCMBatchResponse.php (Diff revision 1) hmm, not really, no?
Unknown
would mean "we sent it, but haven't heard back". For that to be true we'd need to check whether it's in$this->endpoints
too and only returnUnknown
if it is.If it isn't in
$this->endpoints
it wasn't part of the batch. That should be an exception IMHO. -
src/Lunr/Vortex/FCM/FCMBatchResponse.php (Diff revision 1) This is a correct use of
Unknown
, for example. Whenever we reach this, we know the switch above is missing acase
statement.
[Vortex] FCM: Send fcm notifications in batches
Review Request #1126 — Created Feb. 29, 2024 and submitted
Information | |
---|---|
b.stoop | |
Lunr.Vortex | |
fcm/batchsending | |
|
|
1136 | |
5ae6af0... | |
Reviewers | |
lunr | |
Based on master
FCM: Send fcm notifications in batches
Github actions run: https://github.com/brianstoop/lunr.vortex/actions/runs/8891789477
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+1309 -571) |
-
-
src/Lunr/Vortex/FCM/FCMBatchResponse.php (Diff revisions 1 - 2) correct array shape syntax would be
array{0: Response}
Testing Done: |
|
||||||
---|---|---|---|---|---|---|---|
Commit: |
|
||||||
Diff: |
Revision 3 (+1309 -571) |
Testing Done: |
|
||||||
---|---|---|---|---|---|---|---|
Commit: |
|
||||||
Diff: |
Revision 4 (+1309 -571) |