Page MenuHomePhabricator

[lib] Add function for filtering out calendar filters related to one keyserver
ClosedPublic

Authored by inka on Dec 21 2023, 4:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 19, 9:12 PM
Unknown Object (File)
Sat, Apr 19, 11:03 AM
Unknown Object (File)
Sat, Apr 19, 3:13 AM
Unknown Object (File)
Fri, Apr 18, 7:33 AM
Unknown Object (File)
Wed, Apr 9, 12:35 AM
Unknown Object (File)
Mar 22 2025, 6:20 AM
Unknown Object (File)
Mar 19 2025, 2:02 AM
Unknown Object (File)
Mar 18 2025, 7:28 PM
Subscribers

Details

Summary

issue: ENG-5810
I added a helper function removeKeyserverThreadIDsFromFilterList, which removes thread ids of theads reladted to given keyservers from calendar filters.
This function is very similar to previously existing removeDeletedThreadIDsFromFilterList, so I extracted the common code

Test Plan

ran the provided tests. The tests for removeDeletedThreadIDsFromFilterList are not very exhaustive, but they check that the functinon didn't stop working as a result of my changes.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Dec 21 2023, 5:03 AM
michal added inline comments.
lib/reducers/calendar-filters-reducer.test.js
143–144 ↗(On Diff #34906)

Nit: shouldn't this be like keyserverIDToRemove?

This revision is now accepted and ready to land.Jan 5 2024, 4:10 AM