Error on install due to Missing dependency to Paragraphs project

Created on 8 July 2024, 9 months ago

Problem/Motivation

There is a bug due to a missing dependency for Paragraphs.
EBT Tiles creates a paragraph type EBT Tiles Items.
Therefore, Paragraphs must be installed.
However, this dependency is not listed in the info file.
So if the editor user tries to install EBT Tiles without having Paragraphs, there will be an error.

Steps to reproduce

  1. Ensure that Paragraphs is not installed
  2. Try to install EBT Tiles
  3. Result: The following error will be displayed:
In UnmetDependenciesException.php line 100:
                                                                                                                                                                                                                                                               
  Configuration objects provided by <em class="placeholder">ebt_tiles</em> have unmet dependencies: <em class="placeholder">core.entity_form_display.block_content.ebt_tiles.default (paragraphs), core.entity_view_display.block_content.ebt_tiles.default (  
  entity_reference_revisions), field.storage.block_content.field_ebt_tiles (entity_reference_revisions, paragraphs)</em> 

Proposed resolution

Define the dependency for Paragraphs.
Info file
In the dependencies key use:

dependencies:
  - ebt_core:ebt_core
  - paragraphs:paragraphs

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024