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
F2150651: D5828.diff
Sun, Jun 30, 10:55 AM
F2147725: D5828.id19385.diff
Sun, Jun 30, 2:43 AM
F2143027: D5828.id.diff
Sat, Jun 29, 3:29 PM
Unknown Object (File)
Fri, Jun 28, 3:35 AM
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
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
Branch
policy-stuff-5
Lint
No Lint Coverage
Unit
No Test Coverage

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