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)
Tue, Dec 17, 3:31 PM
Unknown Object (File)
Sat, Dec 14, 5:48 PM
Unknown Object (File)
Sun, Dec 1, 12:03 PM
Unknown Object (File)
Nov 25 2024, 8:52 PM
Unknown Object (File)
Nov 25 2024, 8:44 PM
Unknown Object (File)
Nov 25 2024, 8:22 PM
Unknown Object (File)
Nov 8 2024, 5:43 PM
Unknown Object (File)
Nov 3 2024, 7:02 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.