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
F3490721: D5828.id19316.diff
Wed, Dec 18, 5:15 PM
F3490718: D5828.id19385.diff
Wed, Dec 18, 5:15 PM
F3490702: D5828.id19181.diff
Wed, Dec 18, 5:09 PM
F3489853: D5828.diff
Wed, Dec 18, 1:56 PM
Unknown Object (File)
Sun, Dec 15, 8:30 PM
Unknown Object (File)
Sun, Dec 15, 8:30 PM
Unknown Object (File)
Sun, Dec 15, 8:30 PM
Unknown Object (File)
Sun, Dec 15, 8:29 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
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