Page MenuHomePhabricator

[lib] Allow calling link-disabling endpoint

Authored by tomek on May 22 2023, 6:29 AM.
Referenced Files
Unknown Object (File)
Mon, Jul 15, 9:53 AM
Unknown Object (File)
Sun, Jul 14, 8:39 AM
Unknown Object (File)
Sun, Jul 14, 1:45 AM
Unknown Object (File)
Sat, Jul 13, 11:58 AM
Unknown Object (File)
Wed, Jul 10, 2:49 PM
Unknown Object (File)
Sun, Jul 7, 5:44 PM
Unknown Object (File)
Mon, Jun 24, 3:02 PM
Unknown Object (File)
Jun 20 2024, 3:37 AM



The reducer deletes an entry in the store. In the future we will have to do more here, as not only public links can be disabled.

Depends on D7906

Test Plan

Confirm disabling a link and check if it was deleted, e.g. by verifying that disable link button disappears.

Diff Detail

rCOMM Comm
Lint Not Applicable
Tests Not Applicable

Event Timeline

tomek requested review of this revision.May 22 2023, 6:47 AM

I think the differential name is not complete and confusing a bit

44 ↗(On Diff #26774)

I would move currentPrimaryLink?.name === condition to if upper, and avoid modifying the state if it's falsy

This revision is now accepted and ready to land.May 22 2023, 10:44 AM
In D7907#234718, @kamil wrote:

I think the differential name is not complete and confusing a bit

It seems so... not sure what happened

tomek retitled this revision from [lib] Add reducer and endpoint calling code to [lib] Allow calling link-disabling endpoint.May 23 2023, 6:52 AM

Make reducer more efficient

This revision was automatically updated to reflect the committed changes.