Skip to content

Commit

Permalink
fix: Tweak grouped label
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Feb 6, 2024
1 parent 227c897 commit 20077f2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/comms/src/ecl/workunit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const definitionRegex = /([a-zA-Z]:)?(.*[\\\/])(.*)(\((\d+),(\d+)\))/;
const extendedProps = ["Avg", "Min", "Max", "Delta", "StdDev"];
const relatedProps = ["SkewMin", "SkewMax", "NodeMin", "NodeMax"];
interface PropertyValue {
Key: string;
Measure: string;
Label: string;

Value?: string;
// Extended properties ---
Avg?: string;
Expand Down Expand Up @@ -117,7 +119,9 @@ function formatValues(item: IScope, key: string, dedup: DedupProperties): Proper
dedup[keyParts.label] = true;

return {
Key: `${keyParts.measure}${keyParts.label}`,
Measure: keyParts.measure,
Label: keyParts.label,

Value: formatValue(item, `${keyParts.measure}${keyParts.label}`),
// Extended properties ---
Avg: formatValue(item, `${keyParts.measure}Avg${keyParts.label}`),
Expand Down Expand Up @@ -736,7 +740,7 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
if (key.indexOf("__") !== 0) {
const row = formatValues(normalizedScope, key, dedup);
if (row) {
normalizedScope.__groupedProps[row.Key] = row;
normalizedScope.__groupedProps[`${row.Measure}${row.Label}`] = row;
}
}
}
Expand Down Expand Up @@ -1091,7 +1095,7 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
}
return this.connection.WUCDebug({
Wuid: this.Wuid,
Command: `<debug:${command} uid='${this.Wuid}'${optsStr}/>`
Command: `< debug:${command} uid = '${this.Wuid}'${optsStr} />`
}).then((response) => {
return response;
});
Expand Down

0 comments on commit 20077f2

Please sign in to comment.