Skip to content

Commit

Permalink
fix: fix Pipeline rendering by replacing * with * (#8349)
Browse files Browse the repository at this point in the history
* replace * with *

* reno
  • Loading branch information
anakin87 authored and silvanocerza committed Sep 10, 2024
1 parent f26e2fb commit 0b1f35e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/core/pipeline/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ def _to_mermaid_text(graph: networkx.MultiDiGraph) -> str:
connections_list.append(conn_string)

input_connections = [
f"i{{*}} -- \"{conn_data['label']}<br><small><i>{conn_data['conn_type']}</i></small>\" --> {states[to_comp]}"
f"i{{&ast;}}--\"{conn_data['label']}<br><small><i>{conn_data['conn_type']}</i></small>\"--> {states[to_comp]}"
for _, to_comp, conn_data in graph.out_edges("input", data=True)
]
output_connections = [
f"{states[from_comp]} -- \"{conn_data['label']}<br><small><i>{conn_data['conn_type']}</i></small>\"--> o{{*}}"
f"{states[from_comp]}--\"{conn_data['label']}<br><small><i>{conn_data['conn_type']}</i></small>\"--> o{{&ast;}}"
for from_comp, _, conn_data in graph.in_edges("output", data=True)
]
connections = "\n".join(connections_list + input_connections + output_connections)
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/fix-pipe-rendering-50261e0472f0d267.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
Fix the Pipeline visualization issue due to changes in the new release of Mermaid.

0 comments on commit 0b1f35e

Please # to comment.