Sql rewrite causing Duplicate entitiy entries in views

Created on 30 September 2024, about 2 months ago

Problem/Motivation

When an entity is attached to multiple groups with group access limiting the view of that entity any view that displays that entity type will have duplicate rows for that specific entity.

You can see this even in the core drupal admin content page if for example you have two groups that both have the same page attached to them. Make sure that the access to view the page is limited by the group so that the additional sql is added by the group module

Steps to reproduce

Create a group type and make two groups
attach the basic page to the group
Limit view access to pages that are in a group to members of the group
Attach the "same" page to multiple groups
look in the admin content view and that page will show up multiple times

Proposed resolution

The cause is the additional sql queries added to check for view access in the group sql rewrite

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mettasoul

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

Comments & Activities

Production build 0.71.5 2024