ymcatwincities/openy

openy_loc_branch has undeclared dependency to openy_node_alert

Opened this issue · 5 comments

use Drupal\openy_node_alert\Service\AlertBuilderInterface;

This line references openy_node_alert, but

does not list that module as a dependency. This could result in unexpected errors if openy_loc_branch is enabled without openy_node_alert.

@froboy openy_node_alert is a dependency in OpenY profile. It can't be disabled as of now.

Hm, not true..
https://github.com/ymcatwincities/openy/search?l=YAML&q=openy_node_alert

Dependency management should become better with decoupling

Well... openy_node_alert is a part of the alerts package:

name: 'Alerts'
description: 'Alerts package provides an ability to create and manage website alerts.'
help: '<p>Using Alerts package you can create, select placement, select color schema and publish alerts that should notify visitors about important events or announcements.</p>'
modules:
- openy_txnm_color
- openy_node_alert

The alerts package is installed with all three install types:

name: Standard
packages:
- alerts

extended:
name: Extended
packages:
- alerts

complete:
name: Complete/Developer
hidden: true
packages:
- activenet
- alerts

So while it's installed with every Open Y installation, it's treated more like a soft dependency, so it could be uninstalled after install, which would then cause problems (much like we're seeing). :)

@shelleygoetz do we have a jira ticket for this issue?

@sarah-halby we do, I must have missed putting the link in here. See: (https://openy.atlassian.net/browse/MAINTAIN-182)