Page MenuHomePhabricator

Move groupping device by platform details and notif info generation promise to utils in lib/push
AcceptedPublic

Authored by marcin on Wed, Jun 19, 1:17 PM.
Tags
None
Referenced Files
F2169603: D12476.id41494.diff
Tue, Jul 2, 12:14 PM
F2169560: D12476.id41568.diff
Tue, Jul 2, 12:07 PM
Unknown Object (File)
Sun, Jun 30, 3:21 PM
Unknown Object (File)
Sun, Jun 30, 2:52 AM
Unknown Object (File)
Sun, Jun 30, 12:25 AM
Unknown Object (File)
Thu, Jun 27, 6:00 PM
Unknown Object (File)
Wed, Jun 26, 9:01 AM
Unknown Object (File)
Tue, Jun 25, 6:55 PM
Subscribers

Details

Reviewers
kamil
tomek
Summary

This differential moves a utility function that groups devices by platform details to lib since we will need it for client-sent notifs as well.

Test Plan

check that notifs work on the keyserver.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This diff is pure copy paste. No additional logic.

kamil added inline comments.
lib/push/utils.js
2 ↗(On Diff #41568)

add empty line here

5–6 ↗(On Diff #41568)

can be merged

86–94 ↗(On Diff #41568)

can you update this to be an object?

This revision is now accepted and ready to land.Thu, Jun 27, 5:03 AM
lib/push/utils.js
5–6 ↗(On Diff #41568)

These are actually different files

86–94 ↗(On Diff #41568)

+1, way too many functions with a huge number of parameters in this stack. We should max out around 4 params, unless multiple are booleans in which case it's more like 2-3