Page MenuHomePhabricator

[lib] client function to call server and acknowledge policy
ClosedPublic

Authored by kamil on Dec 6 2022, 6:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 9:59 AM
Unknown Object (File)
Wed, Nov 6, 7:09 PM
Unknown Object (File)
Wed, Nov 6, 7:09 PM
Unknown Object (File)
Mon, Oct 28, 11:46 PM
Unknown Object (File)
Mon, Oct 28, 7:19 AM
Unknown Object (File)
Wed, Oct 23, 10:13 AM
Unknown Object (File)
Sat, Oct 19, 4:45 AM
Unknown Object (File)
Sat, Oct 19, 3:30 AM
Subscribers

Details

Summary

This function will be called when user will hit I accept and will send request to server with policy accepted by user.

Context in ENG-2363.

Test Plan

Call this function and check if proper action was dispatched and value on keyserver db was updated

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Dec 6 2022, 6:56 AM

It's hard to review something when you just introduce a function without introducing its usage

tomek added inline comments.
lib/utils/policy-acknowledge-utlis.js
30 ↗(On Diff #19181)

Why do we use startingPayload parameter?

This revision is now accepted and ready to land.Dec 9 2022, 10:06 AM
kamil edited the summary of this revision. (Show Details)

remove startingPayload

It's hard to review something when you just introduce a function without introducing its usage

I know but this function is used in diff where I'm introducing entire Terms of Use Modal so I wanted to make them separated to make it easier for the reviewer but will keep in mind your suggestion

lib/utils/policy-acknowledge-utlis.js
30 ↗(On Diff #19181)

It's not needed, thanks for catching