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)
Feb 19 2024, 6:24 PM
Unknown Object (File)
Feb 19 2024, 4:40 PM
Unknown Object (File)
Feb 19 2024, 3:06 PM
Unknown Object (File)
Feb 19 2024, 3:01 PM
Unknown Object (File)
Feb 19 2024, 12:06 PM
Unknown Object (File)
Feb 19 2024, 6:04 AM
Unknown Object (File)
Dec 31 2023, 6:03 AM
Unknown Object (File)
Dec 17 2023, 1:54 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.