Profile entities have circular dependencies

Created on 2 November 2020, over 4 years ago
Updated 27 December 2024, 3 months ago

* This may be a bug that should be addressed by profile module ( https://www.drupal.org/project/profile β†’ ).

Problem/Motivation

When using the profile module and exporting a user, there are dependencies made to the profile entities in the user export yml as well as the profile export yml. This causes circular dependencies and when importing the content on a new instance, all of the profiles are assigned to uid 1, breaking the functionality. If you remove all of the profile fields and dependencies from the user export yml the problem goes away.

Steps to reproduce

Install profile module and create a user profile. Populate the content and recursively export the user the profile is associated with.

Proposed resolution

Determine if this module should handle this or assign to profile maintainers.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andyg5000 North Carolina, USA

Live updates comments and jobs are added and updated live.
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.

  • First commit to issue fork.
  • Pipeline finished with Success
    3 months ago
    Total: 222s
    #379973
  • πŸ‡ΊπŸ‡ΈUnited States mattsqd

    I've submitted a merge request with tests for this issue. I've tried this out with circular profile references, like in this ticket, as well as others like nodes and terms.
    I'm attaching the patch as well.

  • πŸ‡ΊπŸ‡ΈUnited States mattsqd
  • Pipeline finished with Success
    3 months ago
    Total: 221s
    #383275
  • Pipeline finished with Canceled
    3 months ago
    Total: 261s
    #383285
  • Pipeline finished with Success
    3 months ago
    Total: 150s
    #383289
  • πŸ‡ΊπŸ‡ΈUnited States mattsqd

    Adding new patch to allow embedded fields, no matter how deeply nested, to work and update the references instead of needing to delete and re-create.

  • Pipeline finished with Success
    2 months ago
    Total: 154s
    #404876
  • πŸ‡ΊπŸ‡ΈUnited States mattsqd

    Updated importer to allow circular dependencies to be fixed on fields like links, not just entity references.

Production build 0.71.5 2024