@beauraines/sprint-tracker 0.6.15 → 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 CHANGED
@@ -2,6 +2,21 @@
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
+
12
+ ### [0.6.16](https://github.com/beauraines/sprint-tracker/compare/v0.6.15...v0.6.16) (2024-05-17)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **deps:** bump cli-markdown from 3.2.3 to 3.4.0 ([#73](https://github.com/beauraines/sprint-tracker/issues/73)) ([3c56d80](https://github.com/beauraines/sprint-tracker/commit/3c56d80ae30601970616072598743933cbe15270))
18
+ * **deps:** bump cli-table3 from 0.6.4 to 0.6.5 ([#74](https://github.com/beauraines/sprint-tracker/issues/74)) ([08b50af](https://github.com/beauraines/sprint-tracker/commit/08b50afa68e166b2ae2789964015913592984458))
19
+
5
20
  ### [0.6.15](https://github.com/beauraines/sprint-tracker/compare/v0.6.14...v0.6.15) (2024-05-17)
6
21
 
7
22
 
package/R/combinedStats.R CHANGED
@@ -230,8 +230,38 @@ commitmentPercentage <- commitmentPercentage +
230
230
 
231
231
  ### Generate Sprint Outcomes
232
232
 
233
- # TODO - pull in the SQL here
234
- outcomes = read_csv(str_c(Sys.getenv("HOME"),"/","outcomes.csv"))
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() %>%
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/sprint-tracker",
3
- "version": "0.6.15",
3
+ "version": "0.6.17",
4
4
  "description": "Database and R visualizations to track sprint performance",
5
5
  "main": "cli.js",
6
6
  "bin": {