@beauraines/sprint-tracker 0.6.16 → 0.6.17
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 +7 -0
- package/R/combinedStats.R +32 -2
- package/package.json +1 -1
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.17](https://github.com/beauraines/sprint-tracker/compare/v0.6.16...v0.6.17) (2024-05-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **stats:** Uses proper data for combined stats outcomes chart ([#76](https://github.com/beauraines/sprint-tracker/issues/76)) ([401bedf](https://github.com/beauraines/sprint-tracker/commit/401bedf070d5543e8fcfcacbf9c4bc1dc5d70314)), closes [#75](https://github.com/beauraines/sprint-tracker/issues/75)
|
|
11
|
+
|
|
5
12
|
### [0.6.16](https://github.com/beauraines/sprint-tracker/compare/v0.6.15...v0.6.16) (2024-05-17)
|
|
6
13
|
|
|
7
14
|
|
package/R/combinedStats.R
CHANGED
|
@@ -230,8 +230,38 @@ commitmentPercentage <- commitmentPercentage +
|
|
|
230
230
|
|
|
231
231
|
### Generate Sprint Outcomes
|
|
232
232
|
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
con <- dbConnect(RSQLite::SQLite(),"~/projects/sprint-tracker/tracker.db")
|
|
234
|
+
|
|
235
|
+
sql <- str_c("SELECT
|
|
236
|
+
p.name project_name,
|
|
237
|
+
s.id sprint_id,
|
|
238
|
+
s.sprint_name,
|
|
239
|
+
s.end_date,
|
|
240
|
+
case
|
|
241
|
+
when o.name = 'Commitment' then 'A-Commitment'
|
|
242
|
+
when o.name = 'Delivered' then 'B-Delivered'
|
|
243
|
+
else o.name
|
|
244
|
+
end outcome,
|
|
245
|
+
ifnull(so.story_points, so.issue_count) AS story_points -- accounts for unpointed bug stories
|
|
246
|
+
|
|
247
|
+
from projects p
|
|
248
|
+
|
|
249
|
+
JOIN sprints s on s.project_id = p.id
|
|
250
|
+
JOIN sprint_outcomes so on so.sprint_id = s.id
|
|
251
|
+
JOIN outcomes o on o.id = so.outcome_id
|
|
252
|
+
|
|
253
|
+
WHERE
|
|
254
|
+
p.id =",project_id,";"
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
res <- dbSendQuery(con,sql)
|
|
258
|
+
outcomes <- dbFetch(res)
|
|
259
|
+
|
|
260
|
+
# Clear the result
|
|
261
|
+
dbClearResult(res)
|
|
262
|
+
|
|
263
|
+
# Disconnect from the database
|
|
264
|
+
dbDisconnect(con)
|
|
235
265
|
|
|
236
266
|
outcomes <- outcomes %>%
|
|
237
267
|
tibble() %>%
|