Page MenuHomePhabricator

[web] Add to calendar filters reducer logic for handling the COMMUNITY filters
AbandonedPublic

Authored by inka on Jan 30 2023, 2:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Unknown Object (File)
Thu, Nov 7, 3:59 PM
Unknown Object (File)
Sep 28 2024, 4:55 AM
Unknown Object (File)
Sep 28 2024, 4:55 AM
Unknown Object (File)
Sep 28 2024, 4:54 AM
Unknown Object (File)
Sep 28 2024, 4:50 AM
Subscribers

Details

Reviewers
kamil
tomek
Summary

issue: https://linear.app/comm/issue/ENG-2794/make-it-possible-to-display-only-chats-from-a-given-community-in-the
In D6457 I added architectural changes that allow for a new type of calendar filter. In this diff I address these changes in the CalendarFiltersReducer, by handling the new type of action. What we want to
happen, is for the calnderFilters in the redux store, to be set to: the calendra filters of other types as they used to be + calendar filter of type COMMUNITY to have threadIDs equal to threadIDs
from the actions payload.

Test Plan

Dispatch updateCalendarCommunityFilter and clearCalendarCommunityFilter actions, check in redux tools that they succeed, and redux state changes as expected.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Jan 30 2023, 2:28 AM
inka retitled this revision from [web] Add to calendar filters reducer logic for the COMMUNITY filters to [web] Add to calendar filters reducer logic for handling the COMMUNITY filters.Jan 30 2023, 6:06 AM
This revision is now accepted and ready to land.Jan 31 2023, 8:55 AM

We are not sending the community filter to the keyserver anymore, so the information about the filter is only present on web. So handling it should also be done on web. The selector is no longer needed,
since the filter is not part of the other filters, that are present on the keyserver

inka requested review of this revision.Feb 7 2023, 3:47 AM

I messed up something in my local copy, and cannot get this commit back.
I'm abandoning this one and in it's place the is D6645. Sorry

In D6458#197777, @inka wrote:

I messed up something in my local copy, and cannot get this commit back.
I'm abandoning this one and in it's place the is D6645. Sorry

This should never be necessary. You can always get a commit back via yarn arcpatch. You can also always update the diff you want by including the text "Differential Revision: https://phab.comm.dev/D6458" in the commit text. Worth reading through this section of our docs.

Separately, I strongly encourage you to examine how your local environment got in this state... you're probably using some "antipatterns" where you often find yourself with multiple commits for a given revision or something like that. You should always have precisely one commit in your local copy corresponding to a diff.