@beauraines/sprint-tracker 0.6.23 → 0.6.25
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 +9 -0
- package/R/combinedStats.R +26 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.25](https://github.com/beauraines/sprint-tracker/compare/v0.6.24...v0.6.25) (2024-07-27)
|
|
6
|
+
|
|
7
|
+
### [0.6.24](https://github.com/beauraines/sprint-tracker/compare/v0.6.23...v0.6.24) (2024-07-16)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
5
14
|
### [0.6.23](https://github.com/beauraines/sprint-tracker/compare/v0.6.22...v0.6.23) (2024-07-14)
|
|
6
15
|
|
|
7
16
|
### [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
|
|