Page MenuHomePhabricator

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

Authored by marcin on Jun 19 2024, 1:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 6:48 AM
Unknown Object (File)
Thu, Dec 19, 6:48 AM
Unknown Object (File)
Thu, Dec 19, 6:48 AM
Unknown Object (File)
Thu, Dec 19, 6:48 AM
Unknown Object (File)
Thu, Dec 19, 6:48 AM
Unknown Object (File)
Thu, Dec 19, 6:48 AM
Unknown Object (File)
Thu, Dec 19, 6:48 AM
Unknown Object (File)
Wed, Dec 4, 7:10 PM
Subscribers

Details

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
Lint Not Applicable
Unit
Tests Not Applicable

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.Jun 27 2024, 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

Extract parameters to object