Consume governed recipients and add operational checks
This commit is contained in:
@@ -27,6 +27,7 @@ from govoplan_core.core.modules import (
|
||||
PermissionDefinition,
|
||||
RoleTemplate,
|
||||
)
|
||||
from govoplan_core.core.operations import OperationalCheckProviderRegistration
|
||||
from govoplan_core.core.views import ViewSurface
|
||||
from govoplan_core.db.base import Base
|
||||
from govoplan_core.core.postbox import (
|
||||
@@ -254,7 +255,7 @@ manifest = ModuleManifest(
|
||||
),
|
||||
ModuleInterfaceRequirement(
|
||||
name="addresses.recipient_source",
|
||||
version_min="0.1.0",
|
||||
version_min="0.1.9",
|
||||
version_max_exclusive="0.2.0",
|
||||
optional=True,
|
||||
),
|
||||
@@ -750,6 +751,17 @@ manifest = ModuleManifest(
|
||||
fromlist=["retention_capability"],
|
||||
).retention_capability(context),
|
||||
},
|
||||
operational_check_providers=(
|
||||
OperationalCheckProviderRegistration(
|
||||
module_id="campaigns",
|
||||
check_id="campaign.generated_eml_storage",
|
||||
provider=lambda: __import__(
|
||||
"govoplan_campaign.backend.operational_checks",
|
||||
fromlist=["generated_eml_storage_check"],
|
||||
).generated_eml_storage_check(),
|
||||
cache_seconds=60,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user