-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): rework topology to handle subflows
closes #774
- Loading branch information
1 parent
a2c81b2
commit 11ba4cb
Showing
39 changed files
with
1,037 additions
and
763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
core/src/main/java/io/kestra/core/models/hierarchies/GraphTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
core/src/main/java/io/kestra/core/models/hierarchies/SubflowGraphCluster.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.kestra.core.models.hierarchies; | ||
|
||
import lombok.Getter; | ||
|
||
|
||
@Getter | ||
public class SubflowGraphCluster extends GraphCluster { | ||
public SubflowGraphCluster(String uid, SubflowGraphTask subflowGraphTask) { | ||
super(subflowGraphTask, uid, RelationType.SEQUENTIAL); | ||
|
||
this.getGraph().addNode(subflowGraphTask); | ||
this.addEdge(this.getRoot(), subflowGraphTask, new Relation()); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
core/src/main/java/io/kestra/core/models/hierarchies/SubflowGraphTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.kestra.core.models.hierarchies; | ||
|
||
import io.kestra.core.models.executions.TaskRun; | ||
import io.kestra.core.tasks.flows.Flow; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
public class SubflowGraphTask extends AbstractGraphTask { | ||
public SubflowGraphTask(Flow task, TaskRun taskRun, List<String> values, RelationType relationType) { | ||
super(task, taskRun, values, relationType); | ||
} | ||
|
||
@Override | ||
public Flow getTask() { | ||
return (Flow) super.getTask(); | ||
} | ||
} |
Oops, something went wrong.