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
F3499902: D6458.diff
Fri, Dec 20, 12:32 AM
Unknown Object (File)
Sat, Nov 23, 6:27 PM
Unknown Object (File)
Nov 15 2024, 11:14 AM
Unknown Object (File)
Nov 15 2024, 9:55 AM
Unknown Object (File)
Nov 7 2024, 4:03 PM
Unknown Object (File)
Nov 7 2024, 4:03 PM
Unknown Object (File)
Nov 7 2024, 4:03 PM
Unknown Object (File)
Nov 7 2024, 3:59 PM
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
Branch
inka/drawer_web_3
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.