Problem/Motivation

It is not possible to avoid that multiple registries define different widgets with the same short code / machine name. This is because not all the registries are maintained by the same teams.

Proposed resolution

We should make the short code that gets ingested by appending the major version number and the machine name of the widget registry source it originated from. This will be a new field (rather than migrating shortcode), since the shortcode information about the widget type is still important.

Remaining tasks

  1. Create a new field and set it to populate with the said data components.
  2. Write an update hook to populate the field for existing widgets.
  3. Ensure that new ingestions compare based on this new identifier instead of shortcode.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

e0ipso created an issue. See original summary.

e0ipso’s picture

Status: Active » Fixed

Green!

  • e0ipso committed 7a69f62 on 1.x
    Issue #3228267 by e0ipso: Avoid ID collisions across multiple tenants
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.