diff --git a/Static/html/122508.html b/Static/html/122508.html
deleted file mode 100644
index 0cd1b00..0000000
--- a/Static/html/122508.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
- Mesa - 122508 - Feature iteration should be set to max of children
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/122514.html b/Static/html/122514.html
deleted file mode 100644
index 53bbcc2..0000000
--- a/Static/html/122514.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
- Mesa - 122514 - Features and children must have a Tag
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/123066.html b/Static/html/123066.html
deleted file mode 100644
index dd40323..0000000
--- a/Static/html/123066.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
- Mesa - 123066 - When children of a Feature are not New Feature must also not be New
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/123067.html b/Static/html/123067.html
deleted file mode 100644
index 6eba8ff..0000000
--- a/Static/html/123067.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
- Mesa - 123067 - WIP
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/126169.html b/Static/html/126169.html
deleted file mode 100644
index 7c828b3..0000000
--- a/Static/html/126169.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
- Mesa - 126169 - Children of a Feature should have the same priority
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/business.html b/Static/html/business.html
deleted file mode 100644
index e4d7d1e..0000000
--- a/Static/html/business.html
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
- Mesa - Business Value
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/effort.html b/Static/html/effort.html
deleted file mode 100644
index 1935c09..0000000
--- a/Static/html/effort.html
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
-
- Mesa - Effort
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/risk.html b/Static/html/risk.html
deleted file mode 100644
index afa4431..0000000
--- a/Static/html/risk.html
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
- Mesa - Risk Reduction and/or Opportunity Enablement
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/time.html b/Static/html/time.html
deleted file mode 100644
index e5f940d..0000000
--- a/Static/html/time.html
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
- Mesa - Time Criticality
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/with-parents.html b/Static/html/with-parents.html
deleted file mode 100644
index fb125b1..0000000
--- a/Static/html/with-parents.html
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
-
- Mesa - User Stor(ies) with parents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/html/wsjf.html b/Static/html/wsjf.html
deleted file mode 100644
index dd5857e..0000000
--- a/Static/html/wsjf.html
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
-
- Mesa - Result of Weightest Shortest Job First calculation (see @SCALE formula)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/js/122508.js b/Static/js/122508.js
deleted file mode 100644
index c9d9b71..0000000
--- a/Static/js/122508.js
+++ /dev/null
@@ -1,160 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- workItem = data[i];
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Violation", dataType: "string", hidden: true },
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/122514.js b/Static/js/122514.js
deleted file mode 100644
index c9d9b71..0000000
--- a/Static/js/122514.js
+++ /dev/null
@@ -1,160 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- workItem = data[i];
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Violation", dataType: "string", hidden: true },
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/123066.js b/Static/js/123066.js
deleted file mode 100644
index c9d9b71..0000000
--- a/Static/js/123066.js
+++ /dev/null
@@ -1,160 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- workItem = data[i];
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Violation", dataType: "string", hidden: true },
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/123067.js b/Static/js/123067.js
deleted file mode 100644
index c9d9b71..0000000
--- a/Static/js/123067.js
+++ /dev/null
@@ -1,160 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- workItem = data[i];
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Violation", dataType: "string", hidden: true },
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/126169.js b/Static/js/126169.js
deleted file mode 100644
index c9d9b71..0000000
--- a/Static/js/126169.js
+++ /dev/null
@@ -1,160 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- workItem = data[i];
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Violation", dataType: "string", hidden: true },
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/business.js b/Static/js/business.js
deleted file mode 100644
index 5b75334..0000000
--- a/Static/js/business.js
+++ /dev/null
@@ -1,170 +0,0 @@
-var _apiUrl = null;
-
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var parent;
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- parent = data[i].Parent;
- workItem = data[i].WorkItem;
- if (workItem.WorkItemType !== 'Feature')
- continue;
- if (workItem.IterationPath !== 'ART SPS')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- if (parent === null) {
- workItem["ParentId"] = null;
- workItem["ParentTitle"] = null;
- workItem["ParentState"] = null;
- }
- else {
- workItem["ParentId"] = parent["Id"];
- workItem["ParentTitle"] = parent["Title"];
- workItem["ParentState"] = getState(parent["State"]);
- }
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function sendValue(element, page, id) {
- $.post(_apiUrl + "save", { time: new Date().getTime(), id: id, page: page, value: element.value }, function (data) {
- console.log("Posted value of " + element.value + " for " + id + " on page " + page);
- });
-}
-
-function setWorkItems(workItems) {
- var record;
- var html = "Parent Id Parent Title Id Requester Title Assigned To System(s) Value ";
- const element = document.getElementById("HeaderGrid");
- for (var i = 0; i < workItems.length; i++) {
- record = workItems[i];
- html += "" + '' + record.ParentId + " " +
- " " + record.ParentTitle +
- " " + '' + record.Id + " " +
- " " + record.Requester +
- " " + record.Title +
- " " + record.AssignedTo +
- " " + record.Tags +
- " " +
- '' +
- 'Unknown ' +
- 'High (Most Value) ' +
- 'Medium ' +
- 'Low ' +
- ' ' +
- " ";
- }
- element.innerHTML = html.replaceAll(">null<", "> <");
-}
-
-function initIndex(url, apiUrl) {
- _apiUrl = apiUrl;
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- setWorkItems(workItems);
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/effort.js b/Static/js/effort.js
deleted file mode 100644
index 133e4a5..0000000
--- a/Static/js/effort.js
+++ /dev/null
@@ -1,170 +0,0 @@
-var _apiUrl = null;
-
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var parent;
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- parent = data[i].Parent;
- workItem = data[i].WorkItem;
- if (workItem.WorkItemType !== 'Feature')
- continue;
- if (workItem.IterationPath !== 'ART SPS')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- if (parent === null) {
- workItem["ParentId"] = null;
- workItem["ParentTitle"] = null;
- workItem["ParentState"] = null;
- }
- else {
- workItem["ParentId"] = parent["Id"];
- workItem["ParentTitle"] = parent["Title"];
- workItem["ParentState"] = getState(parent["State"]);
- }
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function sendValue(element, page, id) {
- $.post(_apiUrl + "save", { time: new Date().getTime(), id: id, page: page, value: element.value }, function (data) {
- console.log("Posted value of " + element.value + " for " + id + " on page " + page);
- });
-}
-
-function setWorkItems(workItems) {
- var record;
- var html = "Parent Id Parent Title Id Requester Title Assigned To System(s) Value ";
- const element = document.getElementById("HeaderGrid");
- for (var i = 0; i < workItems.length; i++) {
- record = workItems[i];
- html += "" + '' + record.ParentId + " " +
- " " + record.ParentTitle +
- " " + '' + record.Id + " " +
- " " + record.Requester +
- " " + record.Title +
- " " + record.AssignedTo +
- " " + record.Tags +
- " " +
- '' +
- 'Unknown ' +
- 'High (Most Effort) ' +
- 'Medium ' +
- 'Low ' +
- ' ' +
- " ";
- }
- element.innerHTML = html.replaceAll(">null<", "> <");
-}
-
-function initIndex(url, apiUrl) {
- _apiUrl = apiUrl;
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- setWorkItems(workItems);
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/leo.js b/Static/js/leo.js
deleted file mode 100644
index ca62889..0000000
--- a/Static/js/leo.js
+++ /dev/null
@@ -1,161 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "ADO Edit", value: '' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var workItems = [];
- var workItem;
- for (var i = data.length - 1; i > -1; i--) {
- workItem = data[i];
- if (workItem.AreaPath !== 'ART SPS\\LEO')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if (workItem.WorkItemType !== 'Feature' && workItem.WorkItemType !== 'Bug')
- continue;
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/mes.js b/Static/js/mes.js
deleted file mode 100644
index 5395107..0000000
--- a/Static/js/mes.js
+++ /dev/null
@@ -1,161 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var workItems = [];
- var workItem;
- for (var i = data.length - 1; i > -1; i--) {
- workItem = data[i];
- if (workItem.AreaPath !== 'ART SPS\\MES')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if (workItem.WorkItemType !== 'Feature' && workItem.WorkItemType !== 'Bug')
- continue;
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/risk.js b/Static/js/risk.js
deleted file mode 100644
index 5410b96..0000000
--- a/Static/js/risk.js
+++ /dev/null
@@ -1,170 +0,0 @@
-var _apiUrl = null;
-
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var parent;
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- parent = data[i].Parent;
- workItem = data[i].WorkItem;
- if (workItem.WorkItemType !== 'Feature')
- continue;
- if (workItem.IterationPath !== 'ART SPS')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- if (parent === null) {
- workItem["ParentId"] = null;
- workItem["ParentTitle"] = null;
- workItem["ParentState"] = null;
- }
- else {
- workItem["ParentId"] = parent["Id"];
- workItem["ParentTitle"] = parent["Title"];
- workItem["ParentState"] = getState(parent["State"]);
- }
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function sendValue(element, page, id) {
- $.post(_apiUrl + "save", { time: new Date().getTime(), id: id, page: page, value: element.value }, function (data) {
- console.log("Posted value of " + element.value + " for " + id + " on page " + page);
- });
-}
-
-function setWorkItems(workItems) {
- var record;
- var html = "Parent Id Parent Title Id Requester Title Assigned To System(s) Value ";
- const element = document.getElementById("HeaderGrid");
- for (var i = 0; i < workItems.length; i++) {
- record = workItems[i];
- html += "" + '' + record.ParentId + " " +
- " " + record.ParentTitle +
- " " + '' + record.Id + " " +
- " " + record.Requester +
- " " + record.Title +
- " " + record.AssignedTo +
- " " + record.Tags +
- " " +
- '' +
- 'Unknown ' +
- 'High (Most Risk) ' +
- 'Medium ' +
- 'Low ' +
- ' ' +
- " ";
- }
- element.innerHTML = html.replaceAll(">null<", "> <");
-}
-
-function initIndex(url, apiUrl) {
- _apiUrl = apiUrl;
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- setWorkItems(workItems);
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/time.js b/Static/js/time.js
deleted file mode 100644
index c918524..0000000
--- a/Static/js/time.js
+++ /dev/null
@@ -1,170 +0,0 @@
-var _apiUrl = null;
-
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var parent;
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- parent = data[i].Parent;
- workItem = data[i].WorkItem;
- if (workItem.WorkItemType !== 'Feature')
- continue;
- if (workItem.IterationPath !== 'ART SPS')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- if (parent === null) {
- workItem["ParentId"] = null;
- workItem["ParentTitle"] = null;
- workItem["ParentState"] = null;
- }
- else {
- workItem["ParentId"] = parent["Id"];
- workItem["ParentTitle"] = parent["Title"];
- workItem["ParentState"] = getState(parent["State"]);
- }
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function sendValue(element, page, id) {
- $.post(_apiUrl + "save", { time: new Date().getTime(), id: id, page: page, value: element.value }, function (data) {
- console.log("Posted value of " + element.value + " for " + id + " on page " + page);
- });
-}
-
-function setWorkItems(workItems) {
- var record;
- var html = "Parent Id Parent Title Id Requester Title Assigned To System(s) Value ";
- const element = document.getElementById("HeaderGrid");
- for (var i = 0; i < workItems.length; i++) {
- record = workItems[i];
- html += "" + '' + record.ParentId + " " +
- " " + record.ParentTitle +
- " " + '' + record.Id + " " +
- " " + record.Requester +
- " " + record.Title +
- " " + record.AssignedTo +
- " " + record.Tags +
- " " +
- '' +
- 'Unknown ' +
- 'High (Most Critical) ' +
- 'Medium ' +
- 'Low ' +
- ' ' +
- " ";
- }
- element.innerHTML = html.replaceAll(">null<", "> <");
-}
-
-function initIndex(url, apiUrl) {
- _apiUrl = apiUrl;
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- setWorkItems(workItems);
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/with-parents.js b/Static/js/with-parents.js
deleted file mode 100644
index 516ecaf..0000000
--- a/Static/js/with-parents.js
+++ /dev/null
@@ -1,177 +0,0 @@
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var parent;
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- parent = data[i].Parent;
- workItem = data[i].WorkItem;
- if (workItem.WorkItemType !== 'User Story' && workItem.WorkItemType !== 'Bug')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- if (parent === null) {
- workItem["ParentId"] = null;
- workItem["ParentTitle"] = null;
- workItem["ParentState"] = null;
- }
- else {
- workItem["ParentId"] = parent["Id"];
- workItem["ParentTitle"] = parent["Title"];
- workItem["ParentState"] = getState(parent["State"]);
- }
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function initIndex(url) {
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- $("#HeaderGrid").igGrid({
- autoGenerateColumns: false,
- dataSource: workItems,
- height: "100%",
- primaryKey: "Id",
- width: "100%",
- columns: [
- { key: "Violation", dataType: "string", hidden: true },
- { headerText: "Parent Id", key: "ParentId", dataType: "string" },
- { headerText: "Parent State", key: "ParentState", dataType: "string" },
- { key: "Id", dataType: "number" },
- { key: "Requester", dataType: "string" },
- { headerText: "Assigned To", key: "AssignedTo", dataType: "string" },
- { key: "Title", dataType: "string", width: "20%" },
- { headerText: "System(s)", key: "Tags", dataType: "string" },
- { key: "Priority", dataType: "string" },
- { headerText: "Qual/Eff", key: "TimeCriticality", dataType: "string" },
- { key: "State", dataType: "string" },
- { headerText: "Effort in Days", key: "Effort", dataType: "number" },
- { headerText: "UAT as of", key: "ResolvedDate", dataType: "date", format: "date" },
- { headerText: "CMP Date", key: "ClosedDate", dataType: "date", format: "date" },
- { headerText: "Target", key: "TargetDate", dataType: "date", format: "date" },
- { key: "ParentTitle", dataType: "string", hidden: true },
- { key: "AreaPath", dataType: "string", hidden: true },
- { key: "AssignedTo", dataType: "string", hidden: true },
- { key: "BusinessValue", dataType: "number", hidden: true },
- { key: "ChangedDate", dataType: "string", hidden: true },
- { key: "CommentCount", dataType: "number", hidden: true },
- { key: "CreatedDate", dataType: "string", hidden: true },
- { key: "Description", dataType: "string", hidden: true },
- { key: "IterationPath", dataType: "string", hidden: true },
- { key: "Revision", dataType: "number", hidden: true },
- { key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
- { key: "StartDate", dataType: "string", hidden: true },
- { key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
- { key: "WorkItemType", dataType: "string", hidden: true },
- ],
- features: [
- { name: "Sorting", type: "local" },
- { name: "Filtering", type: "local" },
- { name: "Selection", mode: "row", multipleSelection: false, rowSelectionChanging: detailSelectionChangedRunInfo },
- { name: "Paging", type: "local", recordCountKey: "TotalRows", pageSize: 10, pageSizeUrlKey: "pageSize", "pageIndexUrlKey": "page", showPageSizeDropDown: true },
- ],
- });
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/js/wsjf.js b/Static/js/wsjf.js
deleted file mode 100644
index 2715c83..0000000
--- a/Static/js/wsjf.js
+++ /dev/null
@@ -1,155 +0,0 @@
-var _apiUrl = null;
-
-function compareFunction(a, b) {
- return a.Priority[0] - b.Priority[0] || a.TimeCriticality[0] - b.TimeCriticality[0] || b.State[0] - a.State[0] || a.Id - b.Id;
-}
-
-function showOne(rowData) {
- if (rowData == null)
- return;
- var data = [];
- data.push({ name: "Edit in ADO", value: 'Edit in ADO ' + rowData["Id"] + ' ' });
- for (const property in rowData) {
- if (rowData[property] == null)
- continue;
- data.push({ name: property, value: rowData[property].toString() });
- }
- $("#AllGrid").igGrid({
- autoGenerateColumns: true,
- dataSource: data,
- width: "100%",
- showHeader: false,
- });
-}
-
-function loadOne() {
- var selectedRow = $("#HeaderGrid").data("igGridSelection").selectedRow();
- if (selectedRow == null)
- return;
- var rowData = $("#HeaderGrid").data("igGrid").dataSource.dataView()[selectedRow.index];
- showOne(rowData);
-}
-
-function detailSelectionChangedRunInfo(evt, ui) {
- if (ui.row.index === 0)
- return;
- var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
- showOne(rowData);
-}
-
-function getState(state) {
- var result;
- if (state == null)
- result = "9-Null";
- else if (state === "New")
- result = `1-${state}`;
- else if (state === "Active")
- result = `2-${state}`;
- else if (state === "Resolved")
- result = `3-${state}`;
- else if (state === "Closed")
- result = `4-${state}`;
- else if (state === "Removed")
- result = `5-${state}`;
- else
- result = `8-${state}`;
- return result;
-}
-
-function getPriority(workItemType, priority) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (priority == null || priority === 0)
- result = "9-Null";
- else if (priority === 1)
- result = `${priority}-High`;
- else if (priority === 2)
- result = `${priority}-Med`;
- else if (priority === 3)
- result = `${priority}-Low`;
- else if (priority === 4)
- result = `${priority}-TBD`;
- else
- result = "8-Not";
- return result;
-}
-
-function getTimeCriticality(workItemType, timeCriticality) {
- var result;
- if (workItemType === "Bug")
- result = "0-Bug";
- else if (timeCriticality == null || timeCriticality === 0)
- result = "9-Null";
- else if (timeCriticality === 1)
- result = `${timeCriticality}-QSM`;
- else if (timeCriticality === 2)
- result = `${timeCriticality}-Qual`;
- else if (timeCriticality === 3)
- result = `${timeCriticality}-Eff`;
- else
- result = "8-Not";
- return result;
-}
-
-function getWorkItems(data) {
- var parent;
- var workItem;
- var workItems = [];
- for (var i = data.length - 1; i > -1; i--) {
- parent = data[i].Parent;
- workItem = data[i].WorkItem;
- if (workItem.WorkItemType !== 'Feature')
- continue;
- if (workItem.Tags != null && workItem.Tags.includes("Ignore"))
- continue;
- if ((document.title.indexOf('HiRel') > -1 && workItem.AreaPath !== 'ART SPS\\LEO') || (document.title.indexOf('Mesa') > -1 && workItem.AreaPath !== 'ART SPS\\MES'))
- continue;
- if (parent === null) {
- workItem["ParentId"] = null;
- workItem["ParentTitle"] = null;
- workItem["ParentState"] = null;
- }
- else {
- workItem["ParentId"] = parent["Id"];
- workItem["ParentTitle"] = parent["Title"];
- workItem["ParentState"] = getState(parent["State"]);
- }
- workItem["State"] = getState(workItem["State"])
- workItem["Priority"] = getPriority(workItem["WorkItemType"], workItem["Priority"])
- workItem["TimeCriticality"] = getTimeCriticality(workItem["WorkItemType"], workItem["TimeCriticality"])
- workItems.push(workItem);
- }
- workItems.sort(compareFunction);
- return workItems;
-}
-
-function setWorkItems(workItems) {
- var record;
- var html = "Parent Id Parent Title Id Requester Title Assigned To System(s) Value ";
- const element = document.getElementById("HeaderGrid");
- for (var i = 0; i < workItems.length; i++) {
- record = workItems[i];
- html += "" + '' + record.ParentId + " " +
- " " + record.Title +
- " " + '' + record.Id + " " +
- " " + record.Requester +
- " " + record.Title +
- " " + record.AssignedTo +
- " " + record.Tags +
- " ";
- }
- element.innerHTML = html.replaceAll(">null<", "> <");
-}
-
-function initIndex(url, apiUrl) {
- _apiUrl = apiUrl;
- $.getJSON(url, { _: new Date().getTime() }, function (data) {
- var workItems = getWorkItems(data);
- console.log(data.length);
- if (data.length > 0)
- console.log(data[0]);
- setWorkItems(workItems);
- });
- $("#HeaderGrid").on("dblclick", "tr", loadOne);
-}
\ No newline at end of file
diff --git a/Static/leo.html b/Static/leo.html
deleted file mode 100644
index c13b486..0000000
--- a/Static/leo.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
- FI Backlog HiRel (Leominster)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/mes.html b/Static/mes.html
deleted file mode 100644
index b180520..0000000
--- a/Static/mes.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
- FI Backlog Mesa
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Static/styles/122508.css b/Static/styles/122508.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/122508.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/122514.css b/Static/styles/122514.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/122514.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/123066.css b/Static/styles/123066.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/123066.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/123067.css b/Static/styles/123067.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/123067.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/126169.css b/Static/styles/126169.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/126169.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/business.css b/Static/styles/business.css
deleted file mode 100644
index c0d7115..0000000
--- a/Static/styles/business.css
+++ /dev/null
@@ -1,16 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#HeaderGrid tr td {
- max-width: 200px;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/effort.css b/Static/styles/effort.css
deleted file mode 100644
index c0d7115..0000000
--- a/Static/styles/effort.css
+++ /dev/null
@@ -1,16 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#HeaderGrid tr td {
- max-width: 200px;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/leo.css b/Static/styles/leo.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/leo.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/mes.css b/Static/styles/mes.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/mes.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/risk.css b/Static/styles/risk.css
deleted file mode 100644
index c0d7115..0000000
--- a/Static/styles/risk.css
+++ /dev/null
@@ -1,16 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#HeaderGrid tr td {
- max-width: 200px;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/time.css b/Static/styles/time.css
deleted file mode 100644
index c0d7115..0000000
--- a/Static/styles/time.css
+++ /dev/null
@@ -1,16 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#HeaderGrid tr td {
- max-width: 200px;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/with-parents.css b/Static/styles/with-parents.css
deleted file mode 100644
index dbeaf02..0000000
--- a/Static/styles/with-parents.css
+++ /dev/null
@@ -1,12 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Static/styles/wsjf.css b/Static/styles/wsjf.css
deleted file mode 100644
index c0d7115..0000000
--- a/Static/styles/wsjf.css
+++ /dev/null
@@ -1,16 +0,0 @@
-#HeaderGridDiv,
-#DetailsGridDiv {
- font-size: 12px;
-}
-
-#HeaderGrid {
- font-family: monospace;
-}
-
-#HeaderGrid tr td {
- max-width: 200px;
-}
-
-#AllGrid {
- font-family: monospace;
-}
\ No newline at end of file
diff --git a/Tests/OI.Metrology.Tests.csproj b/Tests/OI.Metrology.Tests.csproj
index 800d62a..70dfee7 100644
--- a/Tests/OI.Metrology.Tests.csproj
+++ b/Tests/OI.Metrology.Tests.csproj
@@ -26,15 +26,15 @@
Linux
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/Wafer-Counter/.vscode/tasks.json b/Wafer-Counter/.vscode/tasks.json
index 6bcb3a2..810ef90 100644
--- a/Wafer-Counter/.vscode/tasks.json
+++ b/Wafer-Counter/.vscode/tasks.json
@@ -1,6 +1,16 @@
{
"version": "2.0.0",
"tasks": [
+ {
+ "label": "dotnetRunDebug",
+ "command": "dotnet OI.Metrology.Wafer.Counter.dll",
+ "dependsOn": "build",
+ "problemMatcher": [],
+ "type": "shell",
+ "options": {
+ "cwd": "${workspaceFolder}/bin/Debug/net8.0"
+ }
+ },
{
"label": "build",
"command": "dotnet",