AP2.0: Archetyp-Katalog, Method-Stubs und sichtbare Steuerung in Kontrolle.
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Failing after 2m2s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Failing after 2m2s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
PO-Dokumente (ADP v0.2, MVP v0.3) und Minimal Complete Slice: Registry-Methoden, Initiative/Project-Spiegel, Default-Methode bei Anlage, Lagebild mit Archetyp und Guidance. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
21d948634e
commit
3bd983297b
30 files changed
+2093
-52
No files matched your search
@@ -1,4 +1,4 @@
|
||||
"""System-Felddefinitionen (Seed) — AP1.10b."""
|
||||
"""System-Felddefinitionen (Seed) — AP1.10b / AP2.0b."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -45,4 +45,44 @@ FIELD_DEFINITIONS: tuple[dict[str, Any], ...] = (
|
||||
"sort_order": 20,
|
||||
"validation_json": {},
|
||||
},
|
||||
{
|
||||
"archetype_key": "initiative.maturity_journey",
|
||||
"field_key": "current_focus",
|
||||
"field_type": "text",
|
||||
"label": "Aktueller Fokus",
|
||||
"required": False,
|
||||
"searchable": True,
|
||||
"sort_order": 10,
|
||||
"validation_json": {},
|
||||
},
|
||||
{
|
||||
"archetype_key": "initiative.maturity_journey",
|
||||
"field_key": "training_frequency",
|
||||
"field_type": "enum",
|
||||
"label": "Trainingsfrequenz",
|
||||
"required": False,
|
||||
"searchable": False,
|
||||
"sort_order": 20,
|
||||
"validation_json": {"options": ["daily", "3x_week", "weekly", "flexible"]},
|
||||
},
|
||||
{
|
||||
"archetype_key": "initiative.content_project",
|
||||
"field_key": "manuscript_status",
|
||||
"field_type": "text",
|
||||
"label": "Manuskript-Status",
|
||||
"required": False,
|
||||
"searchable": True,
|
||||
"sort_order": 10,
|
||||
"validation_json": {},
|
||||
},
|
||||
{
|
||||
"archetype_key": "initiative.content_project",
|
||||
"field_key": "word_count_goal",
|
||||
"field_type": "number",
|
||||
"label": "Wortziel",
|
||||
"required": False,
|
||||
"searchable": False,
|
||||
"sort_order": 20,
|
||||
"validation_json": {},
|
||||
},
|
||||
)
|
||||
@@ -1,11 +1,11 @@
|
||||
"""Sync Entity-Archetypen und Felddefinitionen in PostgreSQL — AP1.10b."""
|
||||
"""Sync Entity-Archetypen und Felddefinitionen in PostgreSQL — AP1.10b / AP2.0b."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
|
||||
from db import get_connection
|
||||
from entity_archetypes.registry import INITIATIVE_ARCHETYPES
|
||||
from entity_archetypes.registry import ENTITY_ARCHETYPES
|
||||
from entity_fields.definitions import FIELD_DEFINITIONS
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def sync_entity_field_registry_to_db() -> int:
|
||||
conn = get_connection()
|
||||
try:
|
||||
with conn.cursor() as cur:
|
||||
for archetype in INITIATIVE_ARCHETYPES:
|
||||
for archetype in ENTITY_ARCHETYPES:
|
||||
cur.execute(
|
||||
"""
|
||||
INSERT INTO entity_archetypes (
|
||||
@@ -68,7 +68,7 @@ def sync_entity_field_registry_to_db() -> int:
|
||||
conn.commit()
|
||||
print(
|
||||
"[entity_fields] Sync OK — "
|
||||
f"{len(INITIATIVE_ARCHETYPES)} Archetyp(en), "
|
||||
f"{len(ENTITY_ARCHETYPES)} Archetyp(en), "
|
||||
f"{len(FIELD_DEFINITIONS)} Felddefinition(en)"
|
||||
)
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user