CoreShop icon indicating copy to clipboard operation
CoreShop copied to clipboard

Add a FilterableInterface

Open dkarlovi opened this issue 2 years ago • 3 comments

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes

Currently CoreShop\Component\Core\Model\CategoryInterface has getFilter(), but there's nothing intrinsic about a category having a filter. In my use case, I'd like to attach a filter to brands, product series and other custom objects which are similar to categories in nature (a collection of products), but different.

This would also mean I'd be able to use my custom (Elasticsearch based) filtering on custom objects which are filterable.

dkarlovi avatar Oct 01 '21 09:10 dkarlovi

Filtering and Processing the Filters done in the Controller is quite heavy as well, maybe we can introduce a FilterableInterface and some sort of Service processing that returning a Pageable Listing?

dpfaffenbauer avatar Oct 01 '21 09:10 dpfaffenbauer

Yes, that's exactly what I'm currently doing in my own project. :)

dkarlovi avatar Oct 01 '21 10:10 dkarlovi

@dkarlovi Any progress in your Project? Maybe something we can re-use here?

dpfaffenbauer avatar Mar 24 '22 08:03 dpfaffenbauer