there is no such a thing as 0 complexity
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user