Skip to content

Commit

Permalink
feat(dag info): add label for rendered viz output
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Mar 20, 2019
1 parent b73f441 commit 7157cd7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions base/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ func NewDAGInfo(ctx context.Context, store cafs.Filestore, ng ipld.NodeGetter, p
if err != nil {
return nil, err
}
if err := dsfs.DerefDatasetViz(store, ds); err != nil {
return nil, err
}
if ds.Viz.RenderedPath != "" {
err := info.AddLabelByID("rendered", dsfs.GetHashBase(ds.Viz.RenderedPath, prefix))
if err != nil {
return nil, err
}
}
}
if ds.Transform != nil {
err := info.AddLabelByID("tf", dsfs.GetHashBase(ds.Transform.Path, prefix))
Expand Down

0 comments on commit 7157cd7

Please sign in to comment.