there is no such a thing as 0 complexity

This commit is contained in:
Julien Calixte
2023-07-23 20:11:35 +02:00
parent 2d93e67cdf
commit 22c2c4aff6
2 changed files with 9 additions and 9 deletions

View File

@@ -12,20 +12,20 @@ const hasQualityIssue = (
let probabilityOfQualityIssue = 0 let probabilityOfQualityIssue = 0
switch (complexity) { switch (complexity) {
case 0:
probabilityOfQualityIssue = 0.99
case 1: case 1:
probabilityOfQualityIssue = 0.97
case 2:
probabilityOfQualityIssue = 0.93 probabilityOfQualityIssue = 0.93
break break
case 2:
probabilityOfQualityIssue = 0.9
break
case 3: case 3:
probabilityOfQualityIssue = 0.85 probabilityOfQualityIssue = 0.88
break break
case 4: case 4:
probabilityOfQualityIssue = 0.77 probabilityOfQualityIssue = 0.82
break
case 5:
probabilityOfQualityIssue = 0.75
break break
default: default:

View File

@@ -3,7 +3,7 @@ import { Feature } from '@/modules/feature/feature'
export const features: Feature[] = birds.map((name) => ({ export const features: Feature[] = birds.map((name) => ({
name, name,
complexity: Math.floor(Math.random() * 6), complexity: Math.floor(Math.random() * 5) + 1,
leadTime: 0, leadTime: 0,
status: 'doing', status: 'doing',
step: Infinity, step: Infinity,