Views filter on bundles for custom entities should use options

Created on 30 January 2017, over 7 years ago
Updated 27 September 2023, 9 months ago

When trying to filter a view on bundle of entities that is not nodes, using the datasource filter, only gives the possibility to match on a string.
Instead this filter should work like when the entity is a node, meaning that a select list with the bundles as options.
Encountered this problem when wanting to exclude more than one product from a product search using Commerce.

✨ Feature request
Status

Needs work

Version

1.0

Component

Views integration

Created by

πŸ‡©πŸ‡°Denmark ChristianEsbensen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States thalemn

    I'm using search_api 8.x-1.29 and have a view based on the index of commerce products. Like the OP, I have the same issue: I cannot filter out product types that I want to exclude from the view. There's a similar issue on commerce: https://www.drupal.org/project/commerce/issues/3016759 β†’ .

    Is there something I'm missing in configuring the index and fields in order to filter by commerce product type? I've added the entity type field to the index but that doesn't work as expected.

    What is the best course of action?

Production build 0.69.0 2024