Page MenuHomePhabricator

[lib] introduce removeCommunityActionType
AcceptedPublic

Authored by ginsu on Feb 28 2024, 12:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 1:35 AM
Unknown Object (File)
Wed, Apr 17, 11:14 PM
Unknown Object (File)
Fri, Apr 12, 3:23 AM
Unknown Object (File)
Fri, Apr 5, 5:39 AM
Unknown Object (File)
Thu, Apr 4, 7:02 PM
Unknown Object (File)
Thu, Apr 4, 6:43 PM
Unknown Object (File)
Mar 10 2024, 8:18 PM
Unknown Object (File)
Mar 8 2024, 7:58 AM
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