Add poll workflow and signed participation support
This commit is contained in:
@@ -84,10 +84,11 @@ DOCUMENTATION = (
|
||||
|
||||
|
||||
def _tenant_summary(session, tenant_id: str) -> dict[str, int]:
|
||||
from govoplan_poll.backend.db.models import Poll, PollResponse
|
||||
from govoplan_poll.backend.db.models import Poll, PollInvitation, PollResponse
|
||||
|
||||
return {
|
||||
"polls": session.query(Poll).filter(Poll.tenant_id == tenant_id, Poll.deleted_at.is_(None)).count(),
|
||||
"poll_invitations": session.query(PollInvitation).filter(PollInvitation.tenant_id == tenant_id).count(),
|
||||
"poll_responses": session.query(PollResponse).filter(PollResponse.tenant_id == tenant_id, PollResponse.deleted_at.is_(None)).count(),
|
||||
}
|
||||
|
||||
@@ -109,6 +110,8 @@ manifest = ModuleManifest(
|
||||
ModuleInterfaceProvider(name="poll.option_selection", version="0.1.8"),
|
||||
ModuleInterfaceProvider(name="poll.availability_matrix", version="0.1.8"),
|
||||
ModuleInterfaceProvider(name="poll.response_collection", version="0.1.8"),
|
||||
ModuleInterfaceProvider(name="poll.workflow_context", version="0.1.8"),
|
||||
ModuleInterfaceProvider(name="poll.signed_participation", version="0.1.8"),
|
||||
),
|
||||
permissions=PERMISSIONS,
|
||||
role_templates=ROLE_TEMPLATES,
|
||||
@@ -121,6 +124,7 @@ manifest = ModuleManifest(
|
||||
retirement_supported=True,
|
||||
retirement_provider=drop_table_retirement_provider(
|
||||
poll_models.Poll,
|
||||
poll_models.PollInvitation,
|
||||
poll_models.PollOption,
|
||||
poll_models.PollResponse,
|
||||
label="Poll",
|
||||
@@ -130,6 +134,7 @@ manifest = ModuleManifest(
|
||||
uninstall_guard_providers=(
|
||||
persistent_table_uninstall_guard(
|
||||
poll_models.Poll,
|
||||
poll_models.PollInvitation,
|
||||
poll_models.PollOption,
|
||||
poll_models.PollResponse,
|
||||
label="Poll",
|
||||
|
||||
Reference in New Issue
Block a user