-
Notifications
You must be signed in to change notification settings - Fork 343
Commit 4323ed8
Doris-Gelahirumarambapragatimodisamueldg
authored* Implement `send_each` and `send_each_for_multicast` (#692)
`send_each` vs `send_all`
1. `send_each` sends one HTTP request to V1 Send endpoint for each message in the list. `send_all` sends only one HTTP request to V1 Batch Send endpoint to send all messages in the array.
2. `send_each` uses concurrent.futures.ThreadPoolExecutor to run and wait for all `request` calls to complete and construct a `BatchResponse`. An `request` call to V1 Send endpoint either completes with a success or throws an exception. So if an exception is thrown out, the exception will be caught in `send_each` and turned into a `SendResponse` with an exception. Therefore, unlike `send_all`, `send_each` does not always throw an exception for a total failure. It can also return a `BatchResponse` with only exceptions in it.
`send_each_for_multicast` calls `send_each` under the hood.
* Add integration tests for send_each and send_each_for_multicast (#700)
* Add integration tests for send_each and send_each_for_multicast
Add test_send_each, test_send_each_500 and test_send_each_for_multicast
* chore: Fix pypy tests (#694)
* chore(auth): Update Auth API to `v2` (#691)
* `v2beta1` -> `v2`
* Reverting auto formatting changes
* undo auto formatting
* Add release notes to project URLs in PyPI (#679)
It's useful to be able to navigate to the release notes easily
from the package index when upgrading.
"Release Notes" is a special keyword that will have the scroll icon
in the project page.
A random example:
* https://pypi.org/project/streamlit/
* https://github.com/streamlit/streamlit/blob/815a3ea6fa3e7f9099b479e8365bd3a5874ddc35/lib/setup.py#L111
Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
---------
Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
Co-authored-by: pragatimodi <110490169+pragatimodi@users.noreply.github.com>
Co-authored-by: Samuel Dion-Girardeau <samueldg@users.noreply.github.com>
---------
Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
Co-authored-by: pragatimodi <110490169+pragatimodi@users.noreply.github.com>
Co-authored-by: Samuel Dion-Girardeau <samueldg@users.noreply.github.com>
1 parent f0865f7 commit 4323ed8
File tree
4 files changed
+448
-1
lines changed- firebase_admin
- integration
- tests
4 files changed
+448
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | + | ||
17 | 18 |
| |
19 | + | ||
20 | + | ||
18 | 21 |
| |
19 | 22 |
| |
20 | 23 |
| |
21 | - | ||
22 | 24 |
| |
23 | 25 |
| |
24 | 26 |
| |
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
31 | + | ||
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
| |||
115 | 118 |
| |
116 | 119 |
| |
117 | 120 |
| |
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
155 | + | ||
156 | + | ||
157 | + | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | ||
171 | + | ||
118 | 172 |
| |
119 | 173 |
| |
120 | 174 |
| |
| |||
132 | 186 |
| |
133 | 187 |
| |
134 | 188 |
| |
189 | + | ||
190 | + | ||
135 | 191 |
| |
192 | + | ||
136 | 193 |
| |
137 | 194 |
| |
138 | 195 |
| |
| |||
152 | 209 |
| |
153 | 210 |
| |
154 | 211 |
| |
212 | + | ||
213 | + | ||
155 | 214 |
| |
215 | + | ||
216 | + | ||
156 | 217 |
| |
157 | 218 |
| |
158 | 219 |
| |
| |||
356 | 417 |
| |
357 | 418 |
| |
358 | 419 |
| |
420 | + | ||
421 | + | ||
422 | + | ||
423 | + | ||
424 | + | ||
425 | + | ||
426 | + | ||
427 | + | ||
428 | + | ||
429 | + | ||
430 | + | ||
431 | + | ||
432 | + | ||
433 | + | ||
434 | + | ||
435 | + | ||
436 | + | ||
437 | + | ||
438 | + | ||
439 | + | ||
440 | + | ||
441 | + | ||
442 | + | ||
443 | + | ||
444 | + | ||
445 | + | ||
446 | + | ||
447 | + | ||
448 | + | ||
359 | 449 |
| |
360 | 450 |
| |
361 | 451 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | ||
137 | + | ||
138 | + | ||
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | ||
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
89 | 151 |
| |
90 | 152 |
| |
91 | 153 |
| |
|
0 commit comments