Skip to content

Importing a design system library item twice creates two design systems with the same UUID #536

Open

Description

@rahulwalunje

Problem

A design system saved to a library on its own (as its own item) is created again every time it is imported. Both copies carry the same _fl_ds_uuid, and the platform's get_by_uuid() then returns whichever comes first.

Steps

  1. Add a design system to a cloud library from Add Items.
  2. Import it. Import it again, or use Import All on a library that contains it.
  3. Two published design systems now share one UUID.

Cause

The fl_assistant_library_companion_exists check runs only for companions embedded in a page item (#519). A direct import goes straight to creating the post and never asks whether it already exists.

Expected

A direct import of a post type that has a portable identity either reuses the existing post or tells the user it is already present.

Notes

Predates #519. Needs a decision on what the import response looks like when nothing is created, since the UI expects a post back.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions