A drawing moves from revision 3 to revision 4, and the dashboard still shows a green approval for the design. Set up a test with only colour approved against the older revision. The current order should report both colour and edge as pending.
This fictional Python 3 example matches the sample decision to the design, revision and approval scope.
order = {"design": "R-18", "rev": 4}
approvals = {("R-18", 3, "colour")}
pending = {
scope for scope in ("colour", "edge")
if (order["design"], order["rev"], scope) not in approvals
}
assert pending == {"colour", "edge"}
A design-only lookup would have carried colour approval forward silently. It would also have missed that edge treatment needs a decision of its own. For real orders, record an approved carry-forward against the new revision and the exact scope. The example checks that a decision exists; it does not give the system authority to decide whether a change is equivalent.
By ADAHANDMADE
Top comments (0)