"liked_by.any" applies an ALL operator and not an ANY operator

Hi,

When using the search API, the field liked_by.any (and commented_on_by.any) doesn’t behave like expected: it pulls up tasks liked by ALL people you give, not ANY.

e.g. Bob likes comment A, Alice liked B, Bob and Alice both liked C. The search for liked_by.any=Alice,Bob will return only C.

It is important to note that it is coherent with the Advanced Search where the “liked by” field applies an (implicit) ALL operator. But the search, with an explicit any being given, shouldn’t in my opinion.

Hey @Bastien_Siebman , it’s me again :laughing:

I notified the API team and they think this is a bug. I don’t see a timeline for fixing, but you’re right: we should handle this correctly. Thanks for reporting it!

Oh great thanks for the reply!

@Kem_Ozbek is there any news on this issue? thanks

ping @AndrewWong as well :slight_smile:

@Kem_Ozbek @AndrewWong does it make sense to ping you here, or should I raise a ticket somewhere else?

Hey Bastien, thanks for keeping an eye on this one. I’ve reached out to the API team, and will report back with any updates.

2 Likes