dendrite icon indicating copy to clipboard operation
dendrite copied to clipboard

Implement filtering

Open babolivier opened this issue 7 years ago • 8 comments
trafficstars

This issue is tracking the progress of the implementation of filtering on the CS API. AFAIK @CromFr has already been working on implementing that on /sync. Will also need to be implemented on /messages when that endpoint itself gets implemented.

babolivier avatar Nov 07 '18 14:11 babolivier

Yay filters ! 🎉

My current filter-related PRs:

  • #436 implements the use of filter objects when storing / retrieving them in the database
  • #438 and #513 implements the filtering logic inside the event query functions (but uses default filters inside IncrementalSync/CompleteSync so the /sync behaviour is unchanged), respectively for state and account data events
  • #388 (closed) was my first attempt at implementing the filtering logic, all in one huge and messy PR.

I should have in my local repo some branches for other event types, and the final IncrementalSync/CompleteSync implementation, but requires some additional work to be sane & clean.

CromFr avatar Nov 07 '18 16:11 CromFr

Thanks for the info! For the record, and for maximum clarity, this issue being created doesn't mean that filtering will be addressed immediately (it basically means that I needed an open issue to make a TODO comment that's referring to it in a PR I'm currently working on). Hopefully there'll soon be enough bandwidth to deal with it, though.

babolivier avatar Nov 07 '18 17:11 babolivier

Sytests:

    × Can request federation format via the filter
    × Check creating invalid filters returns 4xx

kegsay avatar Aug 24 '20 16:08 kegsay

@neilalexander did you do this in https://github.com/matrix-org/dendrite/pull/1721 ?

kegsay avatar Feb 08 '21 11:02 kegsay

We have filtering in /sync but I don't think we have it in /messages yet.

neilalexander avatar Feb 08 '21 11:02 neilalexander

So, was that implemented by https://github.com/matrix-org/dendrite/pull/2347 and can be closed then?

spaetz avatar Apr 24 '22 19:04 spaetz

There are still 2 outstanding tests which are failing.

kegsay avatar May 23 '22 14:05 kegsay

Still failing.

kegsay avatar Dec 05 '22 16:12 kegsay