Skip to content

Commit

Permalink
Added handling for a tags array
Browse files Browse the repository at this point in the history
  • Loading branch information
Fgerthoffert committed Jan 21, 2022
1 parent 56b7a08 commit 9d48747
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/perfs/perfsStorePayload.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class PerfsStorePayloadProcessor {
const state = {
...job.data,
id: getId(job.data),
verified: false,
description: job.data.description !== undefined ? job.data.description : '',
analysis: '',
resources: {
edges: job.data.resources.map((r) => {
return {
Expand All @@ -65,7 +68,17 @@ export class PerfsStorePayloadProcessor {
}
}),
totalCount: transactionNames.length
},
},
tags: job.data.tags !== undefined ? {
edges: job.data.tags.map((t) => {
return {
node: {
...t
}
}
}),
totalCount: job.data.tags.length
} : { edges: [], totalCount: 0 },
runs: {
edges: job.data.runs.map((r) => {
return {
Expand Down

0 comments on commit 9d48747

Please sign in to comment.