Use human-readable title in views argument for string and number list fields

Created on 23 September 2019, over 4 years ago
Updated 4 February 2023, over 1 year ago

Problem/Motivation

When using an argument filter in a view that is based on a list_field type field, both {{ arguments.field_foo_value }} and {{ raw_arguments.field_foo_value }} result in the same output, namely the key portion from the list.

Proposed resolution

Since "List (text)" fields can define both a key and a label, we should allow to output the label when using {{ arguments.field_foo_value }}. We can do so by utilizing the human checkbox that's already provided when using the summary fallback.

Remaining tasks

Decide on a direction to take. Write tests. Discuss backwards compatibility.

✨ Feature request
Status

Needs work

Version

9.5

Component
OptionsΒ  β†’

Last updated 27 days ago

No maintainer
Created by

πŸ‡©πŸ‡ͺGermany ckaotik Berlin

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.

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 smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    Changing this to a feature request. Will need test coverage as well
    MR needs to be updated for 10.1 please

    Thanks!

Production build 0.69.0 2024