feat: acceptable time per stage with late cards and alerts (front 11)
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 4m24s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m0s
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 4m24s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m0s
Gestão edits the hours and the responsible for each column. A card past the limit turns yellow, twice the limit red, and the board lists it under Atrasados. Números compares the real median with the limit and counts the passages that exceeded it in the period and today.
This commit is contained in:
@@ -315,6 +315,21 @@ DO $$ BEGIN
|
||||
INSERT INTO dtf_local.migrations VALUES('machine-pull-only-v1');
|
||||
END IF;
|
||||
END $$;
|
||||
-- Acceptable time per stage (front 11): Gestão edits these; a card past the
|
||||
-- limit turns yellow, at twice the limit red. `responsible` is who the board
|
||||
-- names for that column. The final stage counts days without pickup.
|
||||
CREATE TABLE IF NOT EXISTS dtf_local.stage_limits (
|
||||
state text PRIMARY KEY CHECK (state IN ('rec','tra','imp','rev','fin')),
|
||||
hours numeric NOT NULL CHECK (hours > 0),
|
||||
responsible text NOT NULL DEFAULT '',
|
||||
updated_by text NOT NULL DEFAULT 'sistema',
|
||||
updated_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
INSERT INTO dtf_local.stage_limits(state,hours,responsible) VALUES
|
||||
('rec',2,'Designer'), ('tra',6,'Operador'), ('imp',4,'Operador'),
|
||||
('rev',2,'Revisor'), ('fin',72,'Atendimento')
|
||||
ON CONFLICT (state) DO NOTHING;
|
||||
|
||||
-- The machines an operator works on; none means every machine.
|
||||
CREATE TABLE IF NOT EXISTS dtf_local.operator_machines (
|
||||
operator_id uuid NOT NULL REFERENCES dtf_local.operators(id) ON DELETE CASCADE,
|
||||
|
||||
Reference in New Issue
Block a user