Add a CTE version of the 'Root relationship' plugin

Created on 5 January 2024, over 1 year ago
Updated 29 January 2024, about 1 year ago

Problem/Motivation

In the 3.x series there was a views relationship plugin that let you join to the root of the tree for a given entity.
In the 5.x this has been removed

Steps to reproduce

Install a 3.x site
Make some views that use the root relationship plugin
Update to 5.x
See the broken/missing handlers

Proposed resolution

Try to write a CTE powered version of the join to root.
Some of the work in the sort plugin might be of inspiration - it will likely require a new class that implements SelectInterface like for TreeOrder
Try to update views configuration in an update hook to rewrite the field/table names in views config from the old relationship tables/fields to the new tables/fields

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

5.0

Component

Code (module)

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024