Reverse reference doesn't work for Group relationship

Created on 7 November 2024, 2 months ago

Problem/Motivation

Adding a Reverse reference of Group relationship is impossible in the content index. This means it isn't possible to filter out content in the search by group.

There are already opened issues in the Group module related to this issue:
https://www.drupal.org/project/group/issues/3479177 ๐Ÿ’ฌ How to reference groups from content in a search api index? Active
https://www.drupal.org/project/group/issues/2993759 โ†’

๐Ÿ› Bug report
Status

Active

Version

1.35

Component

General code

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine snap_x

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

Merge Requests

Comments & Activities

  • Issue created by @snap_x
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine snap_x
  • Pipeline finished with Success
    2 months ago
    Total: 402s
    #334448
  • ๐Ÿ‡บ๐Ÿ‡ฆUkraine snap_x

    I provided a solution in the MR that allows to select "Reverse reference: Group relationship using Content" field for the index.
    Based on this value the views can filter Content per group.

  • ๐Ÿ‡ฆ๐Ÿ‡นAustria drunken monkey Vienna, Austria

    Wow, would be great if thatโ€™s all it takes. Thanks a lot!

    However, as Iโ€™m not using the Group module myself weโ€™ll need either confirmation from others that this works as expected or some test coverage (which would add the Group module as a test dependency).
    Could you maybe post to these other issues (or to Slack, etc.) to tell people about your solution? Maybe someone will be interested and test your MR.

    PS: It seems you (like many others โ€“ it's really easy to misinterpret) are confused by the "Issue tags" field. As the guidelines โ†’ state, they aren't meant for free text tags related to the issue, but only for specific categorization purposes, usually by module maintainers.
    So, if you aren't sure your current usage is correct, please just leave the field empty.

Production build 0.71.5 2024