Skip to content

Commit

Permalink
Merge pull request #114 from bitovi/new-data
Browse files Browse the repository at this point in the history
new example data
  • Loading branch information
justinbmeyer authored Sep 23, 2024
2 parents bdcb066 + dba46f2 commit 3f5a23a
Show file tree
Hide file tree
Showing 10 changed files with 28,411 additions and 51,874 deletions.
2 changes: 1 addition & 1 deletion public/dist/connect-main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/connect-main.min.js.map

Large diffs are not rendered by default.

15,201 changes: 7,587 additions & 7,614 deletions public/dist/hosted-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/hosted-main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/hosted-main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/hosted-main.min.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion public/examples/bitovi-training.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {nativeFetchJSON} from "../jira-oidc-helpers";

const REFERENCE_DATE = new Date(2024,1,20);
const REFERENCE_DATE = new Date(2024,8,21);
const DAY = 1000 * 60 * 60 * 24;


// http://localhost:3000/?primaryIssueType=Initiative&statusesToShow=Development%2CReady&primaryReportType=breakdown&secondaryReportType=breakdown&jql=parent+in+%28IMP-143%2C+IMP-147%29+Order+By+Rank&loadChildren=true

let PROMISE = null;

const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
Expand Down
65,059 changes: 20,811 additions & 44,248 deletions public/examples/bitovi-training.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion public/timeline-configuration/state-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function rawIssuesRequestData({jql, childJQL, isLoggedIn, loadChildren, j

const promise = value.returnedBy(function rawIssuesPromise(){
if( isLoggedIn.value === false) {
return bitoviTrainingData(new Date()).then(csvToRawIssues) ;
return bitoviTrainingData(new Date()) //.then(csvToRawIssues) ;
}

if(!jql.value) {
Expand Down Expand Up @@ -64,6 +64,9 @@ export function rawIssuesRequestData({jql, childJQL, isLoggedIn, loadChildren, j
expand: ["changelog"]
}, (receivedProgressData)=> {
progressData.value = {...receivedProgressData};
}).then( (data)=>{
console.log("rawData", data);
return data;
});
})

Expand Down
6 changes: 1 addition & 5 deletions public/timeline-report.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { StacheElement, type } from "./can.js";

import { derivedToCSVFormat } from "./jira/derived/work-timing/work-timing.js";

import bitoviTrainingData from "./examples/bitovi-training.js";


//import "./steerco-timeline.js";
import "./status-filter.js";
Expand Down Expand Up @@ -89,7 +85,7 @@ export class TimelineReport extends StacheElement {
<ul class="list-disc list-inside ml-2">
<li><a class="text-blue-400" href="?primaryIssueType=Release&hideUnknownInitiatives=true&primaryReportType=due&secondaryReportType=status">Release end dates with initiative status</a></li>
<li><a class="text-blue-400" href="?primaryIssueType=Release&hideUnknownInitiatives=true&secondaryReportType=breakdown">Release timeline with iniative work breakdown</a></li>
<li><a class="text-blue-400" href="?primaryIssueType=Initiative&hideUnknownInitiatives=true&statusesToShow=Development%2CReady&primaryReportType=breakdown">Ready and in-development initiative work breakdown</a></li>
<li><a class="text-blue-400" href="?primaryIssueType=Initiative&hideUnknownInitiatives=true&primaryReportType=breakdown">Ready and in-development initiative work breakdown</a></li>
</ul>
</div>
Expand Down

0 comments on commit 3f5a23a

Please sign in to comment.