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
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
Unknown Object (File)
Sun, Dec 15, 8:20 PM
Unknown Object (File)
Nov 8 2024, 9:59 AM
Unknown Object (File)
Nov 6 2024, 7:09 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