-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f445302
commit c309ef7
Showing
26 changed files
with
58,231 additions
and
905 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import {deriveWorkTiming} from "./work-timing/work-timing.js"; | ||
import {getWorkStatus} from "./work-status/work-status.js"; | ||
import { normalizeIssue } from "../normalized/normalize.js"; | ||
|
||
/** | ||
* @typedef {import("../normalized/normalize.js").NormalizedIssue & { | ||
* derivedTiming: import("./work-timing/work-timing.js").DerivedTiming | ||
* } & {derivedStatus: import("./work-status/work-status.js").DerivedWorkStatus}} DerivedWorkIssue | ||
*/ | ||
|
||
|
||
/** | ||
* Adds derived data | ||
* @param {NormalizedIssue} normalizedIssue | ||
* @return {DerivedWorkIssue} | ||
*/ | ||
export function deriveIssue(issue, options){ | ||
const timing = deriveWorkTiming(issue, options); | ||
return { | ||
|
||
derivedTiming: timing, | ||
derivedStatus: getWorkStatus(issue, options), | ||
...issue | ||
} | ||
} | ||
|
||
|
||
|
||
/** | ||
* | ||
* @param {Array<JiraIssue>} issues | ||
* @returns {Array<DerivedWorkIssue>} | ||
*/ | ||
export function normalizeAndDeriveIssues(issues, options) { | ||
return issues.map( issue => deriveIssue( normalizeIssue(issue, options), options ) ) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Structure | ||
|
||
Folders for issue data: | ||
|
||
- `/raw` - helpers that operate on raw data returned from Jira | ||
- `/normalized` - a function that takes raw data and normalizes it to useful values. For example, some | ||
Jira configurations might use `Estimated Story Points` instead of `Story points`. | ||
- `/derived` - helper functions that build from a SINGLE issue's normalized data. For instance, calculating | ||
the amount of time between `start date` and `due date`. | ||
- `/rollup` - helper functions that roll up data across multiple issues, specifically across parent/child relationships. | ||
|
||
Folders for other data types: | ||
|
||
- `/releases` |
Oops, something went wrong.