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)
Fri, Nov 22, 5:19 PM
Unknown Object (File)
Fri, Nov 22, 5:13 PM
Unknown Object (File)
Fri, Nov 22, 4:57 PM
Unknown Object (File)
Fri, Nov 22, 12:41 PM
Unknown Object (File)
Fri, Nov 15, 9:00 PM
Unknown Object (File)
Fri, Nov 15, 8:24 PM
Unknown Object (File)
Fri, Nov 15, 8:05 PM
Unknown Object (File)
Fri, Nov 15, 9:27 AM
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
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.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