Refactor breaks eca_ui

Created on 6 April 2025, about 1 month ago

Problem/Motivation

eca_ui is missing an expected route: entity.eca.collection

Steps to reproduce

1. Start with a brand new Drupal site with 11.2 or newer drupal/core.
2. Enable eca
3. Enable eca_ui

Observe the error

In RouteProvider.php line 214:
                                                 
  Route "entity.eca.collection" does not exist.

Proposed resolution

Return responsibility for the route back to the eca_ui module.

Additional context:
During the refactoring we gave all eca_ui routes to the modeler_api module. They exist in a different form than the original eca_ui.routing.yml file in the src/Routing/Routes.php file. This was likely done because using this route with the modeler_api module active means we need to apply different permissions (it means something different now).

We either need to:
1. Refactor the rest of the references to entity.eca.collection to modeler_api
2. Find a way to gracefully enhance / override the route when modeler_api is enabled, and give a base level of the route back to the eca_ui module.

Remaining tasks

Decide on a path forward. Implement.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cosmicdreams Minneapolis/St. Paul

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