easier takt time computation

This commit is contained in:
Julien Calixte
2023-07-27 01:10:15 +02:00
parent 8d0d3dc7f9
commit e218ae5447
5 changed files with 33 additions and 22 deletions

View File

@@ -21,8 +21,8 @@ const strategies: Strategy[] = ['push', 'pull', 'push-dps', 'pull-dps']
<th>#</th>
<th class="numeric">push</th>
<th class="numeric">pull</th>
<th class="numeric">pull and DPS</th>
<th class="numeric">push and DPS</th>
<th class="numeric">pull and DPS</th>
</tr>
</thead>
<tbody>

View File

@@ -1,7 +1,7 @@
import { featureSteps } from '@/modules/feature/feature-steps'
import { Strategy } from '@/modules/lean/strategy'
import { Dashboard, Meta } from '@/store-type'
import { getRound, sumElements } from '@/utils'
import { getRound } from '@/utils'
import { defineStore } from 'pinia'
// Get features done per day to plot it
@@ -64,6 +64,7 @@ export const useSimulationStore = defineStore('dashboard', {
this.dashboards.push(dashboard)
},
async simulate(strategy: Strategy) {
this.requestedSimulation++
const steps = featureSteps
const backlog = await instance.newBacklog()
const features = await instance.initBoard(steps, backlog)
@@ -98,10 +99,8 @@ export const useSimulationStore = defineStore('dashboard', {
this.newDashboard(dashboard)
this.mean[strategy].leadTimeSum += dashboard.analysis.meanLeadTime
// todo: set directly the number of features
this.mean[strategy].taktTimeSum +=
dashboard.meta.totalDays /
sumElements(dashboard.meta.featuresDonePerDay)
dashboard.meta.totalDays / newState.features.length
this.mean[strategy].complexitySum += dashboard.analysis.meanComplexity
this.mean[strategy].qualityIssueSum += dashboard.analysis.meanQualityIssue
this.mean[strategy].simulations++