From a6db06630c98e34c6a4accec62f7732c11c74cf6 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 20 Jul 2026 20:01:50 +0200 Subject: [PATCH] fix(manifest): normalize runtime module id --- README.md | 4 +++- docs/ISSUE_REPORTING_DOMAIN_BOUNDARY.md | 2 +- pyproject.toml | 2 +- src/govoplan_issue_reporting/backend/manifest.py | 10 +++++----- tests/test_manifest.py | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a5c8a32..a4840a4 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ `govoplan-issue-reporting` is the GovOPlaN platform module seed for public or internal problem reporting for broken infrastructure, damaged rooms, IT outages, safety issues, accessibility issues, triage, and routing. +Its runtime module ID is `issue_reporting`; the repository and Python distribution retain the hyphenated `govoplan-issue-reporting` name. + This repository is initialized as a discoverable module seed. It exposes a module manifest, initial permissions, role templates, documentation metadata, Gitea workflow templates, and a focused manifest test. It intentionally does not yet add HTTP routes, database models, migrations, or WebUI navigation. ## Initial Ownership @@ -34,7 +36,7 @@ Expected optional integrations: - cases - assets - facilities -- forms-runtime +- forms_runtime - portal - files - workflow diff --git a/docs/ISSUE_REPORTING_DOMAIN_BOUNDARY.md b/docs/ISSUE_REPORTING_DOMAIN_BOUNDARY.md index 5568093..68f2371 100644 --- a/docs/ISSUE_REPORTING_DOMAIN_BOUNDARY.md +++ b/docs/ISSUE_REPORTING_DOMAIN_BOUNDARY.md @@ -24,7 +24,7 @@ Public or internal problem reporting for broken infrastructure, damaged rooms, I - cases - assets - facilities -- forms-runtime +- forms_runtime - portal - files - workflow diff --git a/pyproject.toml b/pyproject.toml index 19eb4f5..a43fc1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,4 +22,4 @@ where = ["src"] govoplan_issue_reporting = ["py.typed"] [project.entry-points."govoplan.modules"] -"issue-reporting" = "govoplan_issue_reporting.backend.manifest:get_manifest" +issue_reporting = "govoplan_issue_reporting.backend.manifest:get_manifest" diff --git a/src/govoplan_issue_reporting/backend/manifest.py b/src/govoplan_issue_reporting/backend/manifest.py index 743b4c6..747c19c 100644 --- a/src/govoplan_issue_reporting/backend/manifest.py +++ b/src/govoplan_issue_reporting/backend/manifest.py @@ -3,18 +3,18 @@ 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_ID = "issue_reporting" MODULE_NAME = "Issue Reporting" 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 = "issue_reporting:workspace:read" +WRITE_SCOPE = "issue_reporting:workspace:write" +ADMIN_SCOPE = "issue_reporting:workspace:admin" OPTIONAL_DEPENDENCIES = ( "helpdesk", "cases", "assets", "facilities", - "forms-runtime", + "forms_runtime", "portal", "files", "workflow", diff --git a/tests/test_manifest.py b/tests/test_manifest.py index 40a6542..96bc9df 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -9,7 +9,7 @@ class ManifestSeedTests(unittest.TestCase): def test_manifest_registers_seed_contract(self) -> None: manifest = get_manifest() - self.assertEqual(manifest.id, "issue-reporting") + self.assertEqual(manifest.id, "issue_reporting") self.assertEqual(manifest.name, "Issue Reporting") self.assertEqual(manifest.dependencies, ("access",)) self.assertEqual({permission.scope for permission in manifest.permissions}, {READ_SCOPE, WRITE_SCOPE, ADMIN_SCOPE})