cp adapted to 2026 poweron 2
Some checks failed
Deploy Plattform-Core (Int) / test (push) Failing after 12s
Deploy Plattform-Core (Int) / deploy (push) Has been skipped

This commit is contained in:
ValueOn AG 2026-06-09 09:58:05 +02:00
parent 4a60086c80
commit ebc4b2a080
88 changed files with 176 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Generate tenant-dossier.pdf for neutralization demo. Run: python _generateTenantDossierPdf.py
Uses ReportLab so the PDF opens reliably in all viewers (stdlib-only PDFs are fragile).

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Generate the 3 fictitious PWG scan PDFs used by the pilot demo.
Run: python _generateScans.py

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
ÖREB WFS Connector

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Swiss Topo MapServer Connector (Simplified)

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Swiss Parcel (Liegenschaften) Connector

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
JSON Continuation Context Module

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Demo Configs Auto-Discovery Module

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Base class for demo configurations.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Investor Demo April 2026

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""PWG Pilot Demo (April 2026)
Bootstraps a complete PWG-Pilot demo environment in an empty dev/demo install:

View file

@ -1 +1,3 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# CommCoach Feature Container

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Real Estate feature module.
"""

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Document retriever for BZO extraction pipeline.
Queries Dokument table and retrieves PDF content from ComponentObjects.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Pipeline for extracting structured content from BZO PDFs.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
PDF extraction module for BZO documents.
Extracts page-aware text blocks from PDF files.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Rule taxonomy for BZO extraction.
Defines fixed rule types and their patterns for deterministic rule detection.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Real Estate data models for Architektur-Planungs-App.
Implements a general Swiss architecture planning data model.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Handler functions for Real Estate feature routes.
Contains extracted business logic from route handlers.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Interface to Real Estate database objects.
Uses PostgreSQL connector for data access with user/mandate filtering.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Real Estate feature main entry point.
Handles feature definition, RBAC registration, and lifecycle hooks.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Parcel selection service: compute combined outline, total area, and Bauzone grouping.
Used for multi-parcel selection in PEK map view.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Gemeinde and BZO document services for Real Estate feature.
Provides ensure/import logic used by both routes and extract_bzo_information.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Real Estate routes for the backend API.
Implements stateless endpoints for real estate database operations with AI-powered natural language processing.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Swiss Topo Scraping Script

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Real Estate feature AI-based intent recognition and CRUD operations.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Real Estate feature BZO (Bau- und Zonenordnung) information extraction.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Real Estate feature Geometry utilities.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Admin Demo Config API

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Central i18n registration for BackgroundJob progress messages.
Walkers and consumers report progress via ``progressCb(..., messageKey="",

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Per-connection knowledge ingestion preference helpers.
Walkers call `loadConnectionPrefs(connectionId)` once at bootstrap start and

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
workflowAutomation System component for workflow orchestration.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
workflowAutomation.editor Graph/Flow authoring backend.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Quick-Check: existiert FeatureInstance-Row 6019e7d0-b23d-41ec-b9f7-3dd1293078f2
in poweron_app, und welche Mandate/Instances stehen mit dem RedmineTicketMirror in Verbindung?

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Rekey frontend t('dot.notation') -> t('Deutscher Klartext') using locales/de.ts mapping.

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Migration Script: Convert async def def for route handlers that don't need async.

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Cleanup script for duplicate roles in the database.

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# -*- coding: utf-8 -*-
"""
Migration Script: Migrate AccessRules to Vollqualifizierte ObjectKeys

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Runtime-Check (A5): bestaetigt, dass die ``sysadmin``-Rolle aus der
Datenbank entfernt wurde und liefert eine kurze Inventur fuer die
isPlatformAdmin / isSysAdmin Flags.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""CI-Gate: Stelle sicher, dass keine Verweise auf die abgeschaffte
``sysadmin``-Rolle bzw. die alten Helper im Codebase mehr existieren.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Diagnose: read a connection.bootstrap job result and print its keys.
Usage (from repo root):

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Export the database schema from Pydantic MODEL_REGISTRY + fk_target metadata.
Usage (run from gateway/):

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Datenbank-Anpassung an Pydantic-Modelle.

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Audit-Skript fuer Legacy-Bestaende vor Bootstrap-Cleanup (Plan C).
Prueft fuer jede der 5 Bootstrap-Migrationsroutinen, ob noch Restbestand

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Initialize poweron_automation2 database for the Automation2 feature.

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Migration: Add `progressMessageData` JSONB column to BackgroundJob.
Carries the structured i18n payload that lets the frontend translate

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Migration: Drop NOT NULL on DataSource/FeatureDataSource cascade-inherit flags.
Switches three-valued semantics (NULL = inherit, True/False = explicit) for:

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Migration: Rename DataSource.autoSync -> ragIndexEnabled, lastSynced -> lastIndexed.
This is a one-off migration for the RAG consent & control unification.

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Migration: Add `settings` JSONB column to DataSource and FeatureDataSource.
This is a one-off migration for the UDB DataSource Settings (Settings-Icon)

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# -*- coding: utf-8 -*-
"""
Export Script: Generate Access Rules per Role Report

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""One-time migration: Reassign all DB references from an old user UID to a new UID.
When a user is re-created in PORTA (same username, new UUID), all existing records

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Stage 0: verify FileFolder table + FileItem.folderId column in management DB.
Run from the gateway directory (same as uvicorn):

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Demo test fixtures.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
T-API: Demo Config API endpoint verification.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
T-BOOT: Bootstrap idempotency and demo state verification.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
T-DATA: Demo data files verification.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
T-NEU: Neutralization config verification.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
T-UC1: Trustee Spesenverarbeitung.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
T-UC2: Immobilien Machbarkeitsstudie.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
T-UC4: Sprach-Deployment Spanish (es).

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# T18 — AC #16/#17: meta.usesAi on every node type; AI vs non-AI distinction.
import pytest

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# Phase 7: UDM tools (getUdmStructure, walkUdmBlocks, filterUdmByType).
from modules.serviceCenter.services.serviceAgent.coreTools._documentTools import (

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Unit tests for the generic UDB tree builder (`_buildTree.py`).
Most node-level behavior moved into the polymorphic class hierarchy

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Unit tests for `_costEstimate` heuristic.
Validates the output shape, basic formulas, and that 'basis' annotations

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Unit tests for `_inheritFlags` cascade-inherit helpers.
Verifies:

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Unit tests for P1d: consent gating, preference parsing, and walker behaviour.
Tests

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Unit tests for `_ragLimits` central helpers.
Verifies:

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Unit tests for the polymorphic UDB node hierarchy (udbNodes.py).
Each concrete node class is exercised for:

View file

@ -0,0 +1,2 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# Unit tests: context.extractContent serialize + presentation helpers (legacy handover dicts vs new paths).
import base64

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# Unit tests: context.mergeContext primary text from extract handover (documents[0]).
import json

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# Tests: node handover compatibility across all major node combinations.
#
# Covers:

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# Tests for Phase 3: context.extractContent node, port types, executor dispatch.
import pytest

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# Tests for Phase 4: data.consolidate, ai.consolidate, flow.loop level/concurrency, flow.merge dynamic.
import pytest

View file

@ -1,3 +1,5 @@
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
# Tests for Phase 5: Loop concurrency, StepLog batching, streaming aggregate.
import pytest

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Unit tests for automation2 graphUtils - resolveParameterReferences (ref/value format).
"""