@beauraines/sprint-tracker 0.6.23 → 0.6.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.6.24](https://github.com/beauraines/sprint-tracker/compare/v0.6.23...v0.6.24) (2024-07-16)
6
+
7
+
8
+ ### Features
9
+
10
+ * **stats:** excludes descoped stories from commitment percentage ([#84](https://github.com/beauraines/sprint-tracker/issues/84)) ([9c2cee7](https://github.com/beauraines/sprint-tracker/commit/9c2cee70e4ee1217f04a881705306ab75a9cd4c4))
11
+
5
12
  ### [0.6.23](https://github.com/beauraines/sprint-tracker/compare/v0.6.22...v0.6.23) (2024-07-14)
6
13
 
7
14
  ### [0.6.22](https://github.com/beauraines/sprint-tracker/compare/v0.6.21...v0.6.22) (2024-07-01)
package/R/combinedStats.R CHANGED
@@ -46,8 +46,26 @@ from
46
46
  JOIN sprints s on sprint_id = s.id
47
47
  JOIN projects p on project_id = p.id and p.id = ",project_id,
48
48
  " JOIN outcomes o on outcome_id = o.id and outcome_id in (1) -- 1 Delivered, 6 Committment
49
+ ),
50
+ descoped as
51
+ (
52
+ select
53
+ p.name,
54
+ s.id sprint_id,
55
+ s.sprint_name,
56
+ s.start_date,
57
+ s.end_date,
58
+ ifnull(so.story_points, so.issue_count) AS story_points, -- accounts for unpointed bug stories,
59
+ o.name as outcome,
60
+ o.id
61
+ from
62
+ sprint_outcomes so
63
+ JOIN sprints s on sprint_id = s.id
64
+ JOIN projects p on project_id = p.id and p.id = ",project_id,
65
+ " JOIN outcomes o on outcome_id = o.id and outcome_id in (3) -- 3 = Descopred
49
66
  )
50
67
 
68
+
51
69
  select
52
70
  commitment.name,
53
71
  commitment.sprint_id,
@@ -55,10 +73,12 @@ select
55
73
  commitment.start_date,
56
74
  commitment.end_date,
57
75
  commitment.story_points commitment,
58
- completed.story_points completed
76
+ completed.story_points completed,
77
+ descoped.story_points descoped
59
78
  from
60
79
  commitment
61
- LEFT JOIN completed on completed.sprint_id = commitment.sprint_id
80
+ LEFT JOIN completed on completed.sprint_id = commitment.sprint_id
81
+ LEFT JOIN descoped on descoped.sprint_id = commitment.sprint_id
62
82
  where
63
83
  1 =1
64
84
  order by commitment.name,commitment.start_date
@@ -79,8 +99,9 @@ dbDisconnect(con)
79
99
  ## Clean data
80
100
  # Remove Foo and Abe's project
81
101
  sprintData = sprintData %>%
82
- filter(!name %in% c('Foo','Abe\'s projct'))
83
-
102
+ filter(!name %in% c('Foo','Abe\'s projct')) %>%
103
+ mutate(descoped = if_else(is.na(descoped), 0, descoped))
104
+
84
105
  # How to deal with outliers
85
106
 
86
107
  ## Add numbering
@@ -100,7 +121,7 @@ sprintData = sprintData %>%
100
121
  ## Add Completion Percentage
101
122
  sprintData = sprintData %>%
102
123
  group_by(name) %>%
103
- mutate(commitment_percentage = completed/commitment)
124
+ mutate(commitment_percentage = completed/(commitment - descoped))
104
125
 
105
126
 
106
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/sprint-tracker",
3
- "version": "0.6.23",
3
+ "version": "0.6.24",
4
4
  "description": "Database and R visualizations to track sprint performance",
5
5
  "main": "cli.js",
6
6
  "bin": {