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)
Wed, Jun 26, 12:22 PM
Unknown Object (File)
Mon, Jun 24, 1:19 AM
Unknown Object (File)
Thu, Jun 13, 9:09 PM
Unknown Object (File)
Thu, Jun 13, 12:41 AM
Unknown Object (File)
Wed, Jun 12, 7:19 PM
Unknown Object (File)
Thu, May 30, 1:59 AM
Unknown Object (File)
Wed, May 29, 10:56 PM
Unknown Object (File)
Wed, May 29, 10:56 PM
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