Have Views' taxonomy term filters use UUIDs instead of entity IDs

Created on 6 July 2016, over 8 years ago
Updated 16 January 2023, almost 2 years ago

Problem/Motivation

To support the model of deployable configuration, Views configuration with filters on taxonomy terms (or any entity reference field for that matter) should use the UUID of the entity chosen.

For example, creating a view which has a filter on a term from a node field should export to configuration with UUID filter values rather than taxonomy term entity IDs.

Current proposal

On the front-end, keep everything using entity IDs. On the back-end (storage), store IDs as UUIDs, and convert them when passing between the front-end.

Tasks

Original proposal

Add a checkbox to the filter configuration form to allow users to use the uuid of the term as the filter value rather than the tid.

As a stop-gap until this is implemented in core, I implemented it as a custom filter which extends the current taxonomy term id filter. This may help in determining which parts of the code need to be touched when implementing https://gist.github.com/acbramley/1127c4698a9ae86885e03716f47e3281

โœจ Feature request
Status

Needs work

Version

10.1 โœจ

Component
Viewsย  โ†’

Last updated 39 minutes ago

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia acbramley

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

Sign in to follow issues

Merge Requests

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