liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Add reject filter

Open andershagbard opened this issue 3 years ago • 3 comments

This filter adds the inverse of the where filter.

This filter also allows deep searching with dot notation.

Idea from: https://github.com/Shopify/liquid/issues/1555

andershagbard avatar May 12 '22 14:05 andershagbard

Not sure why Rubocop is failing 🤷🏻‍♂️

andershagbard avatar May 12 '22 14:05 andershagbard

I’m not a ruby developer but it seems you also added a nice feature on the reject filter allowing to filter nested objects. This should most likely be backported to the where filter as well.

bakura10 avatar May 24 '22 11:05 bakura10

I’m not a ruby developer but it seems you also added a nice feature on the reject filter allowing to filter nested objects. This should most likely be backported to the where filter as well.

That has proven a bit harder, as there is some backward compatibility we need to take care of: https://github.com/Shopify/liquid/pull/1436

andershagbard avatar May 24 '22 11:05 andershagbard