From 9d48747815d90fd509c9ee81eb1e5d77a84a6f00 Mon Sep 17 00:00:00 2001 From: Francois Gerthoffert Date: Fri, 21 Jan 2022 09:44:08 -0500 Subject: [PATCH] Added handling for a tags array --- src/perfs/perfsStorePayload.processor.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/perfs/perfsStorePayload.processor.ts b/src/perfs/perfsStorePayload.processor.ts index 6d818e3..39ea545 100644 --- a/src/perfs/perfsStorePayload.processor.ts +++ b/src/perfs/perfsStorePayload.processor.ts @@ -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 { @@ -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 {