@beauraines/sprint-tracker 0.6.17 → 0.6.19
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 +7 -7
- package/eslint.config.js +36 -0
- package/package.json +4 -4
- package/.eslintrc.json +0 -16
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.19](https://github.com/beauraines/sprint-tracker/compare/v0.6.18...v0.6.19) (2024-06-21)
|
|
6
|
+
|
|
7
|
+
### [0.6.18](https://github.com/beauraines/sprint-tracker/compare/v0.6.17...v0.6.18) (2024-06-05)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **stats:** handles sprints with no stories/points ([6cc7c1c](https://github.com/beauraines/sprint-tracker/commit/6cc7c1c3d785c26deed92046327f2db0d92bbe9b))
|
|
13
|
+
|
|
5
14
|
### [0.6.17](https://github.com/beauraines/sprint-tracker/compare/v0.6.16...v0.6.17) (2024-05-20)
|
|
6
15
|
|
|
7
16
|
|
package/R/combinedStats.R
CHANGED
|
@@ -21,7 +21,7 @@ select
|
|
|
21
21
|
s.sprint_name,
|
|
22
22
|
s.start_date,
|
|
23
23
|
s.end_date,
|
|
24
|
-
so.story_points,
|
|
24
|
+
ifnull(so.story_points, so.issue_count) AS story_points, -- accounts for unpointed bug stories,
|
|
25
25
|
o.name as outcome,
|
|
26
26
|
o.id
|
|
27
27
|
from
|
|
@@ -38,7 +38,7 @@ select
|
|
|
38
38
|
s.sprint_name,
|
|
39
39
|
s.start_date,
|
|
40
40
|
s.end_date,
|
|
41
|
-
so.story_points,
|
|
41
|
+
ifnull(so.story_points, so.issue_count) AS story_points, -- accounts for unpointed bug stories,
|
|
42
42
|
o.name as outcome,
|
|
43
43
|
o.id
|
|
44
44
|
from
|
|
@@ -95,7 +95,7 @@ sprintData = sprintData %>%
|
|
|
95
95
|
|
|
96
96
|
sprintData = sprintData %>%
|
|
97
97
|
group_by(name) %>%
|
|
98
|
-
mutate(velocity = cumsum(completed)/sprint_number)
|
|
98
|
+
mutate(velocity = cumsum(replace_na(completed, 0))/sprint_number)
|
|
99
99
|
|
|
100
100
|
## Add Completion Percentage
|
|
101
101
|
sprintData = sprintData %>%
|
|
@@ -246,7 +246,7 @@ sql <- str_c("SELECT
|
|
|
246
246
|
|
|
247
247
|
from projects p
|
|
248
248
|
|
|
249
|
-
JOIN sprints s on s.project_id = p.id
|
|
249
|
+
LEFT JOIN sprints s on s.project_id = p.id
|
|
250
250
|
JOIN sprint_outcomes so on so.sprint_id = s.id
|
|
251
251
|
JOIN outcomes o on o.id = so.outcome_id
|
|
252
252
|
|
|
@@ -265,7 +265,7 @@ dbDisconnect(con)
|
|
|
265
265
|
|
|
266
266
|
outcomes <- outcomes %>%
|
|
267
267
|
tibble() %>%
|
|
268
|
-
filter(story_points != 0) %>%
|
|
268
|
+
# filter(story_points != 0) %>%
|
|
269
269
|
mutate(
|
|
270
270
|
end_date = as.Date(end_date)
|
|
271
271
|
)
|
|
@@ -274,12 +274,12 @@ outcomes <- outcomes %>%
|
|
|
274
274
|
|
|
275
275
|
entire_project_velocity = (outcomes %>%
|
|
276
276
|
filter(outcome == 'B-Delivered' ) %>%
|
|
277
|
-
summarize( average_velocity = mean(story_points)))$average_velocity
|
|
277
|
+
summarize( average_velocity = mean(story_points,na.rm = TRUE)))$average_velocity
|
|
278
278
|
|
|
279
279
|
average_velocity = (outcomes %>%
|
|
280
280
|
filter(outcome == 'B-Delivered') %>%
|
|
281
281
|
filter(!sprint_name %in% c('Accessibility Improvement 0','Accessibility Improvements 1')) %>%
|
|
282
|
-
summarize( average_velocity = mean(story_points)))$average_velocity
|
|
282
|
+
summarize( average_velocity = mean(story_points,na.rm = TRUE)))$average_velocity
|
|
283
283
|
|
|
284
284
|
# Compute 95% band velocity
|
|
285
285
|
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const globals = require("globals");
|
|
2
|
+
const jestPlugin = require("eslint-plugin-jest");
|
|
3
|
+
const js = require("@eslint/js"); // Assuming the recommended config is imported from @eslint/js
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
js.configs.recommended,
|
|
7
|
+
{
|
|
8
|
+
languageOptions: {
|
|
9
|
+
ecmaVersion: "latest",
|
|
10
|
+
sourceType: "module",
|
|
11
|
+
globals: {
|
|
12
|
+
...globals.browser,
|
|
13
|
+
...globals.commonjs,
|
|
14
|
+
...globals.es2021,
|
|
15
|
+
...globals.node
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
rules: {
|
|
19
|
+
// Add your rules here
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
files: ["**/*.test.js", "**/__tests__/**/*.js"], // Apply Jest configurations to test files
|
|
24
|
+
languageOptions: {
|
|
25
|
+
globals: {
|
|
26
|
+
...globals.jest, // Merging Jest globals
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
plugins: {
|
|
30
|
+
jest: jestPlugin,
|
|
31
|
+
},
|
|
32
|
+
rules: {
|
|
33
|
+
...jestPlugin.configs.recommended.rules, // Use recommended rules from eslint-plugin-jest
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beauraines/sprint-tracker",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.19",
|
|
4
4
|
"description": "Database and R visualizations to track sprint performance",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/beauraines/sprint-tracker#readme",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"eslint": "^
|
|
35
|
-
"eslint-plugin-jest": "^
|
|
34
|
+
"eslint": "^9.5.0",
|
|
35
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
36
36
|
"jest": "^29.3.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"helpers": "npm:@beauraines/node-helpers@^2.4.0",
|
|
43
43
|
"node-db-migration": "^1.4.0",
|
|
44
44
|
"prompt-sync": "^4.2.0",
|
|
45
|
-
"should-release": "
|
|
45
|
+
"should-release": "github:beauraines/should-release",
|
|
46
46
|
"sqlite": "^5.1.1",
|
|
47
47
|
"sqlite3": "^5.1.2",
|
|
48
48
|
"standard-version": "^9.5.0",
|
package/.eslintrc.json
DELETED