Problem/Motivation

A ProviderBucket config entity may declare its use of one or more custom oEmbed providers (e.g. OembedProvider config entities). This creates a dependency that is not enforced.

Proposed resolution

Add a ::calculateDependencies() method to \Drupal\oembed_providers\Entity\ProviderBucket and add any dependent OembedProvider config entities as dependencies.

Also, add a post_update function to resave all ProviderBucket, thus adding the missing dependencies to existing sites.

Remaining tasks

  • Write code
  • Update tests

User interface changes

None

API changes

None

Data model changes

None

Comments

Chris Burge created an issue. See original summary.

chris burge’s picture

Status: Active » Needs review
StatusFileSize
new4.19 KB

Patch attached.

  • Chris Burge committed 4caa897 on 2.x
    Issue #3268283 by Chris Burge: ProviderBucket config entities should...
chris burge’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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