commit melhorias compras4
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-22 16:28:03 +02:00
parent efd97e265b
commit 36dcfdf00c
118 changed files with 6042 additions and 92 deletions
@@ -0,0 +1,38 @@
{
"date": "2026-11-22",
"status": "pending_specific_owner_authorization",
"environment": "http://127.0.0.1:8005",
"scope": "Install optional requisition approval capability and financial reference search in the existing SGC pilot only",
"migration": {
"file": "database/migrations/2026_11_22_000003_add_configured_requisition_levels.php",
"sha256": "c3d421e61328add6e5dca9b17eea27059b61b09477d42d183796327ec7d981b0",
"effects": ["Add tenants.requisition_approval_policy nullable JSON, initially NULL", "Add approval_steps.routing nullable JSON, initially NULL"]
},
"private_deployment_settings": {"SGC_REQUISITION_APPROVAL_LEVELS_ENABLED": true, "SGC_PROCUREMENT_FINANCE_SEARCH_ENABLED": true},
"functional_effects": [
"Administrators can configure up to five additional conditional approval levels, keeping the mandatory native base approvals and maximum eight total",
"One eligible member of an assigned company profile decides each level; the plan does not grant profile permissions",
"Submitted requests retain their frozen routing; existing requests without an additional-level plan keep their previous approvals",
"No company approval plan, threshold, assigned profile or user permission is created automatically",
"Administration and Finance can find supplier invoices by number within native order visibility, reference and state only"
],
"current_verified_assets_manifest": "9bbca2dc15b40c05f268b118e4f16178a3120ae19329fdbe19403178e22cf251",
"validation": {
"approval_sqlite_focused": {"tests": 12, "assertions": 119},
"approval_postgres_integration": {"tests": 68, "assertions": 1388, "isolated_database_removed": true},
"search_postgres": {"tests": 6, "assertions": 210, "isolated_database_removed": true},
"frontend": "Previously accepted 130-test suite plus 11 search/help and two order compatibility regressions for subsequent changes; do not sum overlapping counts",
"schema_upgrade": "Existing synthetic company/approval values unchanged and new fields NULL",
"rollback_guard": "Refuses removal when a saved company plan or frozen routing exists"
},
"mandatory_execution_safeguards": [
"Verify private settings, actual database and existing role, environment and source hashes before any write",
"Consistent private backup and same-role restore; compare all old rows and columns, foreign keys and configuration",
"Rehearse exact migration on the restored copy before applying it to the pilot",
"Apply only the named migration and verify new columns remain NULL",
"Preserve previous private settings and verify the exact two deployment flag changes; no secret values in logs",
"Check native HTTP availability without creating any business process or decision"
],
"recovery": "Before any new plan/routing, retain the previous settings and backup for reviewed recovery. After configured processes exist, preserve schema and compatible code; do not downgrade or overwrite subsequent data. Disabling a capability with configured processes fails closed, so plan recovery before disabling it.",
"excluded": ["Business submissions or approvals in pilot", "Company plan or threshold creation", "User/profile grants", "SGF modifications", "Shared inventory conversion activation", "Per-order limit activation", "MFA activation", "People formalization", "Enterprise acceptance"]
}