Page MenuHomePhabricator

[lib] Add client side boilerplate and reducer for an endpoint that allows creating or updating public links
ClosedPublic

Authored by tomek on May 19 2023, 10:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 8:52 PM
Unknown Object (File)
Mon, Nov 25, 8:44 PM
Unknown Object (File)
Mon, Nov 25, 8:22 PM
Unknown Object (File)
Fri, Nov 8, 5:43 PM
Unknown Object (File)
Sun, Nov 3, 7:02 AM
Unknown Object (File)
Oct 28 2024, 8:57 AM
Unknown Object (File)
Oct 16 2024, 5:10 PM
Unknown Object (File)
Oct 9 2024, 5:10 AM
Subscribers

Details

Summary

The only interesting part is that the link in redux is updated after successful call to this endpoint. For that purpose I'm using a link returned by backend, instead of figuring out the values on the client, because at some point we could consider having different defaults.

Depends on D7878

Test Plan

Tested in combination with the rest of the stack. Checking if updating or creating a public link works is enough to verify the correctness.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil added inline comments.
lib/actions/link-actions.js
67–75 ↗(On Diff #26682)

why not return response;?

This revision is now accepted and ready to land.May 22 2023, 2:41 AM
lib/actions/link-actions.js
67–75 ↗(On Diff #26682)

The response may contain more fields and we should make sure that all the other fields are filtered out.