[ 
https://issues.apache.org/jira/browse/BEAM-8016?focusedWorklogId=346390&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-346390
 ]

ASF GitHub Bot logged work on BEAM-8016:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Nov/19 01:05
            Start Date: 20/Nov/19 01:05
    Worklog Time Spent: 10m 
      Work Description: davidyan74 commented on pull request #10132: 
[BEAM-8016] Pipeline Graph
URL: https://github.com/apache/beam/pull/10132#discussion_r348242820
 
 

 ##########
 File path: 
sdks/python/apache_beam/runners/interactive/display/pipeline_graph.py
 ##########
 @@ -107,6 +135,16 @@ def _top_level_transforms(self):
         top_level_transform_proto = transforms[top_level_transform_id]
         yield top_level_transform_id, top_level_transform_proto
 
+  def _decorate(self, value):
+    """Decorates label-ish values used for rendering in dot language.
+
+    Escapes special characters in the given str value for dot language. '"' is
 
 Review comment:
   https://www.graphviz.org/doc/info/lang.html says '"' can be escaped with 
\\", and contrary to the comment, " is the only escaped character in dot and a 
\ not followed by a " is a literal \ . So perhaps we should change the code to 
return
   `'"{}"'.format(value.replace('"', '\\"'))`
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 346390)
    Time Spent: 4.5h  (was: 4h 20m)

> Render Beam Pipeline as DOT with Interactive Beam  
> ---------------------------------------------------
>
>                 Key: BEAM-8016
>                 URL: https://issues.apache.org/jira/browse/BEAM-8016
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-py-interactive
>            Reporter: Ning Kang
>            Assignee: Ning Kang
>            Priority: Major
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> With work in https://issues.apache.org/jira/browse/BEAM-7760, Beam pipeline 
> converted to DOT then rendered should mark user defined variables on edges.
> With work in https://issues.apache.org/jira/browse/BEAM-7926, it might be 
> redundant or confusing to render arbitrary random sample PCollection data on 
> edges.
> We'll also make sure edges in the graph corresponds to output -> input 
> relationship in the user defined pipeline. Each edge is one output. If 
> multiple down stream inputs take the same output, it should be rendered as 
> one edge diverging into two instead of two edges.
> For advanced interactivity highlight where each execution highlights the part 
> of the pipeline really executed from the original pipeline, we'll also 
> provide the support in beta.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to