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
@@ -0,0 +1,27 @@
|
||||
-- AP2.0b: Project archetype_key (Spiegel der Initiative)
|
||||
|
||||
ALTER TABLE projects
|
||||
ADD COLUMN IF NOT EXISTS archetype_key VARCHAR(64) NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_projects_archetype
|
||||
ON projects (tenant_id, archetype_key)
|
||||
WHERE archetype_key IS NOT NULL;
|
||||
|
||||
-- Bestehende Projects: Mirror aus Initiative (einmalig)
|
||||
UPDATE projects p
|
||||
SET archetype_key = CASE i.archetype_key
|
||||
WHEN 'initiative.generic' THEN 'project.generic'
|
||||
WHEN 'initiative.maturity_journey' THEN 'project.maturity_journey'
|
||||
WHEN 'initiative.linear_project' THEN 'project.linear_project'
|
||||
WHEN 'initiative.recurring_program' THEN 'project.recurring_program'
|
||||
WHEN 'initiative.support_queue' THEN 'project.support_queue'
|
||||
WHEN 'initiative.program' THEN 'project.program'
|
||||
WHEN 'initiative.product' THEN 'project.product'
|
||||
WHEN 'initiative.dispute_case' THEN 'project.dispute_case'
|
||||
WHEN 'initiative.content_project' THEN 'project.content_project'
|
||||
ELSE 'project.generic'
|
||||
END
|
||||
FROM initiatives i
|
||||
WHERE p.initiative_id = i.id
|
||||
AND p.tenant_id = i.tenant_id
|
||||
AND p.archetype_key IS NULL;
|
||||
Reference in new issue
Block a user