Page MenuHomePhabricator

[lib] introduce removeCommunityActionType
AcceptedPublic

Authored by ginsu on Feb 28 2024, 12:24 AM.
Tags
None
Referenced Files
F1740283: D11192.diff
Sun, May 12, 7:42 AM
Unknown Object (File)
Fri, May 10, 12:12 AM
Unknown Object (File)
Fri, Apr 26, 1:35 AM
Unknown Object (File)
Wed, Apr 17, 11:14 PM
Unknown Object (File)
Apr 12 2024, 3:23 AM
Unknown Object (File)
Apr 5 2024, 5:39 AM
Unknown Object (File)
Apr 4 2024, 7:02 PM
Unknown Object (File)
Apr 4 2024, 6:43 PM
Subscribers

Details

Reviewers
atul
inka
kamil
Summary

This diff introduces the removeCommunityActionType and the logic for this action in the community reducer

Linear task: https://linear.app/comm/issue/ENG-6579/introduce-removing-a-community-from-the-community-store-action

Depends on D11167

Test Plan

Ran the following code + confirmed that the community was being removed

const fakeCommunityID = '256|84261';

const onPressRemoveCommunity = React.useCallback(() => {
  dispatch({
    type: removeCommunityActionType,
    payload: {
      id: fakeCommunityID,
    },
  });
}, [dispatch]);

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka, kamil.
Harbormaster returned this revision to the author for changes because remote builds failed.Feb 28 2024, 12:35 AM
Harbormaster failed remote builds in B27222: Diff 37681!
ginsu requested review of this revision.Feb 28 2024, 6:22 AM

will make sure ci passes before landing

This revision is now accepted and ready to land.Feb 29 2024, 6:39 AM