251210:1709 Frontend: reeactor organization and run build
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-10 17:09:11 +07:00
parent aa96cd90e3
commit c8a0f281ef
140 changed files with 3780 additions and 1473 deletions

View File

@@ -1,7 +0,0 @@
-- Patch: Add workflow.action_review permission to Editor role
-- Required for E2E tests where editor01 needs to perform workflow actions
INSERT IGNORE INTO role_permissions (role_id, permission_id)
VALUES (4, 123);
-- permission_id 123 = workflow.action_review
-- role_id 4 = Editor

View File

@@ -1,10 +0,0 @@
-- Patch: Drop FK constraint for recipient_organization_id
-- Required because -1 is used as sentinel value for "all organizations"
-- Run this on lcbp3_dev database
-- Find and drop the FK constraint(s)
-- The constraint names may vary, check with:
-- SHOW CREATE TABLE document_number_counters;
-- Drop both FK constraints
ALTER TABLE document_number_counters DROP FOREIGN KEY document_number_counters_ibfk_3;
ALTER TABLE document_number_counters DROP FOREIGN KEY fk_recipient_when_not_all;

View File

@@ -1,82 +0,0 @@
-- Patch: Fix CORRESPONDENCE_FLOW_V1 compiled data
-- The compiled JSON used 'target' but code expects 'to'
-- Run this to update existing workflow_definitions
UPDATE workflow_definitions
SET compiled = JSON_OBJECT(
'workflow',
'CORRESPONDENCE_FLOW_V1',
'version',
1,
'initialState',
'DRAFT',
'states',
JSON_OBJECT(
'DRAFT',
JSON_OBJECT(
'terminal',
false,
'transitions',
JSON_OBJECT(
'SUBMIT',
JSON_OBJECT(
'to',
'IN_REVIEW',
'requirements',
JSON_OBJECT('roles', JSON_ARRAY()),
'events',
JSON_ARRAY()
)
)
),
'IN_REVIEW',
JSON_OBJECT(
'terminal',
false,
'transitions',
JSON_OBJECT(
'APPROVE',
JSON_OBJECT(
'to',
'APPROVED',
'requirements',
JSON_OBJECT('roles', JSON_ARRAY()),
'events',
JSON_ARRAY()
),
'REJECT',
JSON_OBJECT(
'to',
'REJECTED',
'requirements',
JSON_OBJECT('roles', JSON_ARRAY()),
'events',
JSON_ARRAY()
),
'RETURN',
JSON_OBJECT(
'to',
'DRAFT',
'requirements',
JSON_OBJECT('roles', JSON_ARRAY()),
'events',
JSON_ARRAY()
)
)
),
'APPROVED',
JSON_OBJECT(
'terminal',
TRUE,
'transitions',
JSON_OBJECT()
),
'REJECTED',
JSON_OBJECT(
'terminal',
TRUE,
'transitions',
JSON_OBJECT()
)
)
)
WHERE workflow_code = 'CORRESPONDENCE_FLOW_V1';