Entity BaseFields of type list_string do not get a select list exposed filter in Views

Created on 21 November 2018, almost 6 years ago
Updated 19 January 2024, 10 months ago

I have a custom entity, with BaseFieldDefinitions. One of which is a list_string type. When I try to add an exposed filter in Views for this field, it defaults to a textfield instead of a select list.

When I look at my entity's EntityViewsData::getViewsData() method and dump the results, it's listed as simply "string".

argument => string
filter => string

It'd be nice if it used list_string or whatever the name is for the select filter (if I could find that I could probably just alter the ViewsData myself and get going for now, but ideally this should be automated for BaseFields).

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
OptionsΒ  β†’

Last updated 9 days ago

No maintainer
Created by

πŸ‡§πŸ‡ͺBelgium Grayle

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

Production build 0.71.5 2024