Skip to content

Commit

Permalink
Fixing decorator automatic port frontend bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarMrZ committed Feb 23, 2024
1 parent cc0b329 commit f7ab9a4
Show file tree
Hide file tree
Showing 21 changed files with 149 additions and 144 deletions.
Binary file modified backend/backend/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/backend/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file modified backend/backend/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified backend/backend/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
286 changes: 143 additions & 143 deletions backend/filesystem/demo/graph.json

Large diffs are not rendered by default.

Empty file.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
django==4.2
djangorestframework==3.14
Binary file modified backend/tree_api/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/json_translator.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/tree_generator.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file modified backend/tree_api/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion frontend/src/components/diagram_editor/DiagramEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ const DiagramEditor = ({currentProjectname, setModelJson, setProjectChanges} : {
// Add the nodes default ports
const addDefaultPorts = (node:any) => {

var nodeName = node.options.name;
console.log("Adding default ports");

var nodeName = node.getName();
console.log(nodeName);
if (nodeName == "RetryUntilSuccessful") node.addInputPort("num_attempts");
else if (nodeName == "Repeat") node.addInputPort("num_cycles");
else if (nodeName == "Delay") node.addInputPort("delay_ms");
Expand Down

0 comments on commit f7ab9a4

Please sign in to comment.