From 3ddbf1a9674a6ab359308ae1f2e27efe86ad5c50 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 30 Jul 2025 18:28:19 +0200 Subject: [PATCH] added comments --- models/workflow/workflow.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index 49f99ad..880d720 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -227,6 +227,10 @@ func (wf *Workflow) Planify(start time.Time, end *time.Time, request *tools.APIR return longest, priceds, wf, nil } +// Returns a map of DataType (processing,computing,data,storage,worfklow) where each resource (identified by its UUID) +// is mapped to the list of its items (different appearance) in the graph +// ex: if the same Minio storage is represented by several nodes in the graph, in [tools.STORAGE_RESSOURCE] its UUID will be mapped to +// the list of GraphItem ID that correspond to the ID of each node func (w *Workflow) GetItemsByResources() (map[tools.DataType]map[string][]string) { res := make(map[tools.DataType]map[string][]string) dtMethodMap := map[tools.DataType]func() []graph.GraphItem{