Ability to view changes to Address/Phone/Email when viewing diff of Contact's revisions

Created on 19 May 2025, 19 days ago

Problem/Motivation

When viewing changes made to a Contact (e.g. using Diff module), it would be helpful to be able to see changes made to that Contact's Addresses, Phones, and Emails, which are specific to that Contact. Paragraphs exemplifies the desired pattern.

Steps to reproduce

Proposed resolution

Use Entity Reference Revisions to allow referenced Contact Detail entities' revisions to be synced with the host Contact entity (similar to Paragraphs).

Postponed on πŸ“Œ Denote which Address/Phone/Email is a Contact's primary Active , whose outcome would affect this approach, and on this becoming a priority.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA

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

Comments & Activities

  • Issue created by @jdleonard
  • πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    I am not sure this is a good idea.

    With the User integration, we will want to ensure the user's email is of fo the contact's emails. We might want to allow editing a CRM Contact Detail in a stand alone form, to all a user to edit their contact's telephone or address, or name, but not the entire contact.

    If we add shared CRM Contact Details, we will not want the revision id.

    I think this is the trade off of having separate entity instead a field.

  • πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA

    If we were to pursue this, I don't think it would be any time soon. There is definite complexity. Happy to WF pending demand.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    Since the three fields are base field, we could add extra columns to the revision table to store the contact detail revision id.

    This could introduce false positives if the contact detail is edited if some other way; if there were shared contact details.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    The revision table will not work there are multiple emails/addresses/telephones.

  • πŸ‡ΊπŸ‡ΈUnited States jdleonard Austin, TX, USA

    Could you clarify your last comment? It works for Paragraphs, doesn't it?

Production build 0.71.5 2024