refactor: rename issue reporting module to tickets

This commit is contained in:
2026-07-29 15:50:18 +02:00
parent a6db06630c
commit 129cad410c
14 changed files with 326 additions and 111 deletions
-1
View File
@@ -1 +0,0 @@
"""GovOPlaN Issue Reporting module."""
@@ -1 +0,0 @@
"""Backend integration for the GovOPlaN Issue Reporting module."""
+1
View File
@@ -0,0 +1 @@
"""GovOPlaN Tickets module."""
+1
View File
@@ -0,0 +1 @@
"""Backend integration for the GovOPlaN Tickets module."""
@@ -3,21 +3,26 @@ from __future__ import annotations
from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER
from govoplan_core.core.modules import DocumentationLink, DocumentationTopic, ModuleManifest, PermissionDefinition, RoleTemplate
MODULE_ID = "issue_reporting"
MODULE_NAME = "Issue Reporting"
MODULE_ID = "tickets"
MODULE_NAME = "Tickets"
MODULE_VERSION = "0.1.8"
READ_SCOPE = "issue_reporting:workspace:read"
WRITE_SCOPE = "issue_reporting:workspace:write"
ADMIN_SCOPE = "issue_reporting:workspace:admin"
READ_SCOPE = "tickets:ticket:read"
WRITE_SCOPE = "tickets:ticket:write"
ADMIN_SCOPE = "tickets:ticket:admin"
OPTIONAL_DEPENDENCIES = (
"helpdesk",
"cases",
"projects",
"wiki",
"assets",
"facilities",
"forms_runtime",
"portal",
"files",
"workflow",
"tasks",
"mail",
"notifications",
"search",
)
@@ -27,7 +32,7 @@ def _permission(scope: str, label: str, description: str) -> PermissionDefinitio
scope=scope,
label=label,
description=description,
category="Issue Reporting",
category="Tickets",
level="tenant",
module_id=module_id,
resource=resource,
@@ -36,22 +41,34 @@ def _permission(scope: str, label: str, description: str) -> PermissionDefinitio
PERMISSIONS = (
_permission(READ_SCOPE, "View issue reporting workspace", "Read issue reporting records, configuration, and workflow context."),
_permission(WRITE_SCOPE, "Manage issue reporting workspace", "Create and update issue reporting records and workflow state."),
_permission(ADMIN_SCOPE, "Administer issue reporting workspace", "Configure issue reporting policies, templates, and tenant-level administration."),
_permission(
READ_SCOPE,
"View tickets",
"Read discoverable tickets, queue state, and resolution context.",
),
_permission(
WRITE_SCOPE,
"Manage tickets",
"Create, triage, assign, update, resolve, and link tickets.",
),
_permission(
ADMIN_SCOPE,
"Administer tickets",
"Configure ticket types, queues, service policies, and intake profiles.",
),
)
ROLE_TEMPLATES = (
RoleTemplate(
slug="issue_reporting_manager",
name="Issue Reporting manager",
description="Manage issue reporting records and workflow state.",
slug="tickets_manager",
name="Tickets manager",
description="Triage, assign, update, and resolve tickets.",
permissions=(READ_SCOPE, WRITE_SCOPE),
),
RoleTemplate(
slug="issue_reporting_viewer",
name="Issue Reporting viewer",
description="Read issue reporting records and workflow context.",
slug="tickets_viewer",
name="Tickets viewer",
description="Read discoverable tickets and their resolution context.",
permissions=(READ_SCOPE,),
),
)
@@ -60,7 +77,10 @@ DOCUMENTATION = (
DocumentationTopic(
id=f"{MODULE_ID}.module-boundary",
title=f"{MODULE_NAME} module boundary",
summary="Public or internal problem reporting for broken infrastructure, damaged rooms, IT outages, safety issues, accessibility issues, triage, and routing.",
summary=(
"Queue-oriented reports, requests, incidents, problems, triage, "
"routing, service work, and auditable resolution."
),
body=(
"This repository is currently a platform module seed. It registers the domain boundary, "
"permission surface, role templates, and documentation metadata before runtime APIs, "
@@ -74,14 +94,24 @@ DOCUMENTATION = (
links=(
DocumentationLink(
label="Repository domain boundary",
href="govoplan-issue-reporting/docs/ISSUE_REPORTING_DOMAIN_BOUNDARY.md",
href="govoplan-tickets/docs/TICKETS_DOMAIN_BOUNDARY.md",
kind="repository",
),
),
metadata={
"seed": True,
"domain_objects": ['issue intake', 'problem category taxonomy', 'triage and routing facts', 'public reporter references', 'handoff targets'],
"first_slice": "Define intake submission, triage status, category, location, evidence, and handoff contracts to helpdesk, cases, assets, or facilities.",
"domain_objects": [
"ticket",
"ticket type and queue",
"triage and routing facts",
"reporter and requester references",
"assignment and service-level state",
"resolution and escalation links",
],
"first_slice": (
"Define ticket identity, intake profiles, queues, triage, "
"assignment, resolution, and stable escalation links to cases."
),
},
),
)