@beauraines/sprint-tracker 0.6.27 → 0.6.29

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,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.29](https://github.com/beauraines/sprint-tracker/compare/v0.6.28...v0.6.29) (2024-09-01)
6
+
7
+ ### [0.6.28](https://github.com/beauraines/sprint-tracker/compare/v0.6.27...v0.6.28) (2024-08-27)
8
+
9
+
10
+ ### Features
11
+
12
+ * includes empty string issue count when determining story points ([73da2a2](https://github.com/beauraines/sprint-tracker/commit/73da2a2a512a00e9179885dc4dd54767b0138584))
13
+
5
14
  ### [0.6.27](https://github.com/beauraines/sprint-tracker/compare/v0.6.26...v0.6.27) (2024-08-24)
6
15
 
7
16
  ### [0.6.26](https://github.com/beauraines/sprint-tracker/compare/v0.6.25...v0.6.26) (2024-08-16)
@@ -17,7 +17,10 @@ SELECT
17
17
  -- s.commited_points,
18
18
  -- so.issue_count,
19
19
  -- so.story_points,
20
- ifnull(so.story_points, so.issue_count) AS story_points -- accounts for unpointed bug stories
20
+ CASE -- accounts for unpointed bug stories
21
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
22
+ ELSE so.story_points
23
+ END AS story_points
21
24
 
22
25
  from projects p
23
26
 
package/R/combinedStats.R CHANGED
@@ -21,7 +21,10 @@ select
21
21
  s.sprint_name,
22
22
  s.start_date,
23
23
  s.end_date,
24
- ifnull(so.story_points, so.issue_count) AS story_points, -- accounts for unpointed bug stories,
24
+ CASE -- accounts for unpointed bug stories
25
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
26
+ ELSE so.story_points
27
+ END AS story_points,
25
28
  o.name as outcome,
26
29
  o.id
27
30
  from
@@ -38,7 +41,10 @@ select
38
41
  s.sprint_name,
39
42
  s.start_date,
40
43
  s.end_date,
41
- ifnull(so.story_points, so.issue_count) AS story_points, -- accounts for unpointed bug stories,
44
+ CASE -- accounts for unpointed bug stories
45
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
46
+ ELSE so.story_points
47
+ END AS story_points,
42
48
  o.name as outcome,
43
49
  o.id
44
50
  from
@@ -55,7 +61,10 @@ select
55
61
  s.sprint_name,
56
62
  s.start_date,
57
63
  s.end_date,
58
- ifnull(so.story_points, so.issue_count) AS story_points, -- accounts for unpointed bug stories,
64
+ CASE -- accounts for unpointed bug stories
65
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
66
+ ELSE so.story_points
67
+ END AS story_points,
59
68
  o.name as outcome,
60
69
  o.id
61
70
  from
@@ -263,7 +272,10 @@ sql <- str_c("SELECT
263
272
  when o.name = 'Delivered' then 'B-Delivered'
264
273
  else o.name
265
274
  end outcome,
266
- ifnull(so.story_points, so.issue_count) AS story_points -- accounts for unpointed bug stories
275
+ CASE -- accounts for unpointed bug stories
276
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
277
+ ELSE so.story_points
278
+ END AS story_points
267
279
 
268
280
  from projects p
269
281
 
@@ -21,7 +21,10 @@ SELECT
21
21
  -- s.commited_points,
22
22
  -- so.issue_count,
23
23
  -- so.story_points,
24
- ifnull(so.story_points, so.issue_count) AS story_points -- accounts for unpointed bug stories
24
+ CASE -- accounts for unpointed bug stories
25
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
26
+ ELSE so.story_points
27
+ END AS story_points
25
28
 
26
29
  from projects p
27
30
 
@@ -21,7 +21,10 @@ SELECT
21
21
  -- s.commited_points,
22
22
  -- so.issue_count,
23
23
  -- so.story_points,
24
- ifnull(so.story_points, so.issue_count) AS story_points -- accounts for unpointed bug stories
24
+ CASE -- accounts for unpointed bug stories
25
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
26
+ ELSE so.story_points
27
+ END AS story_points
25
28
 
26
29
  from projects p
27
30
 
@@ -57,8 +57,11 @@ const handler = async function () {
57
57
  when o.name = 'Delivered' then 'B-Delivered'
58
58
  else o.name
59
59
  end outcome,
60
- ifnull(so.story_points, so.issue_count) AS story_points -- accounts for unpointed bug stories
61
-
60
+ CASE -- accounts for unpointed bug stories
61
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
62
+ ELSE so.story_points
63
+ END AS story_points
64
+
62
65
  from projects p
63
66
 
64
67
  JOIN sprints s on s.project_id = p.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beauraines/sprint-tracker",
3
- "version": "0.6.27",
3
+ "version": "0.6.29",
4
4
  "description": "Database and R visualizations to track sprint performance",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -12,7 +12,10 @@ SELECT
12
12
  -- s.commited_points,
13
13
  -- so.issue_count,
14
14
  -- so.story_points,
15
- ifnull(so.story_points, so.issue_count) AS story_points -- accounts for unpointed bug stories
15
+ CASE -- accounts for unpointed bug stories
16
+ WHEN so.story_points IS NULL OR so.story_points = '' THEN so.issue_count
17
+ ELSE so.story_points
18
+ END AS story_points
16
19
 
17
20
  from projects p
18
21