panopticon-cli 0.4.22 → 0.4.24
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/dist/dashboard/server.js +20 -1
- package/package.json +1 -1
package/dist/dashboard/server.js
CHANGED
|
@@ -85390,6 +85390,22 @@ var IssueDataService = class {
|
|
|
85390
85390
|
for (const tracker of ["github", "linear", "rally"]) {
|
|
85391
85391
|
const cached = this.cache.getStale(tracker, "issues");
|
|
85392
85392
|
if (cached?.data) {
|
|
85393
|
+
if (tracker === "rally") {
|
|
85394
|
+
let sanitizedCount = 0;
|
|
85395
|
+
cached.data = cached.data.map((issue) => {
|
|
85396
|
+
if (typeof issue.rawTrackerState === "object" && issue.rawTrackerState !== null) {
|
|
85397
|
+
sanitizedCount++;
|
|
85398
|
+
return {
|
|
85399
|
+
...issue,
|
|
85400
|
+
rawTrackerState: issue.rawTrackerState.Name || issue.rawTrackerState._refObjectName || "Defined"
|
|
85401
|
+
};
|
|
85402
|
+
}
|
|
85403
|
+
return issue;
|
|
85404
|
+
});
|
|
85405
|
+
if (sanitizedCount > 0) {
|
|
85406
|
+
console.warn(`[IssueDataService] Rally cache: sanitized ${sanitizedCount} issues with object rawTrackerState (PAN-201)`);
|
|
85407
|
+
}
|
|
85408
|
+
}
|
|
85393
85409
|
this.trackers[tracker].lastFetchedIssues = cached.data;
|
|
85394
85410
|
this.trackers[tracker].lastFetchedAt = cached.lastFetchedAt;
|
|
85395
85411
|
}
|
|
@@ -85728,6 +85744,9 @@ var IssueDataService = class {
|
|
|
85728
85744
|
formatRallyIssue(issue, projectInfo) {
|
|
85729
85745
|
const canonicalStatus = mapRallyStateToCanonical(issue.state);
|
|
85730
85746
|
const identifier = issue.ref || issue.id || "unknown";
|
|
85747
|
+
if (typeof issue.rawState === "object" && issue.rawState !== null) {
|
|
85748
|
+
console.warn(`[IssueDataService] Rally ${identifier}: rawState is object, normalizing (PAN-201)`);
|
|
85749
|
+
}
|
|
85731
85750
|
return {
|
|
85732
85751
|
id: `rally-${issue.id || identifier}`,
|
|
85733
85752
|
identifier,
|
|
@@ -85745,7 +85764,7 @@ var IssueDataService = class {
|
|
|
85745
85764
|
updatedAt: issue.updatedAt,
|
|
85746
85765
|
parentRef: issue.parentRef,
|
|
85747
85766
|
artifactType: issue.artifactType,
|
|
85748
|
-
rawTrackerState: issue.rawState,
|
|
85767
|
+
rawTrackerState: typeof issue.rawState === "object" && issue.rawState !== null ? issue.rawState.Name || issue.rawState._refObjectName || "Defined" : issue.rawState,
|
|
85749
85768
|
project: projectInfo,
|
|
85750
85769
|
source: "rally"
|
|
85751
85770
|
};
|