Added max subflow depth to 10 by default

This commit is contained in:
frikky
2021-12-17 00:52:35 +01:00
parent 69541676cf
commit 43b6f16984
2 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -878,7 +878,7 @@ func handleExecution(id string, workflow shuffle.Workflow, request *http.Request
return shuffle.WorkflowExecution{}, fmt.Sprintf(`workflow %s is invalid`, workflow.ID), errors.New("Failed getting workflow") return shuffle.WorkflowExecution{}, fmt.Sprintf(`workflow %s is invalid`, workflow.ID), errors.New("Failed getting workflow")
} }
workflowExecution, execInfo, _, err := shuffle.PrepareWorkflowExecution(ctx, workflow, request) workflowExecution, execInfo, _, err := shuffle.PrepareWorkflowExecution(ctx, workflow, request, 10)
if err != nil { if err != nil {
log.Printf("[WARNING] Failed in prepareExecution: %s", err) log.Printf("[WARNING] Failed in prepareExecution: %s", err)
return shuffle.WorkflowExecution{}, fmt.Sprintf("Failed preparration: %s", err), err return shuffle.WorkflowExecution{}, fmt.Sprintf("Failed preparration: %s", err), err
+14 -7
View File
@@ -5873,10 +5873,11 @@ const AngularWorkflow = (props) => {
disableEnforceFocus={true} disableEnforceFocus={true}
hideBackdrop={true} hideBackdrop={true}
disableBackdropClick={true} disableBackdropClick={true}
open={conditionsModalOpen}
style={{ pointerEvents: "none" }} style={{ pointerEvents: "none" }}
open={conditionsModalOpen}
PaperProps={{ PaperProps={{
style: { style: {
pointerEvents: "auto",
backgroundColor: surfaceColor, backgroundColor: surfaceColor,
color: "white", color: "white",
minWidth: 800, minWidth: 800,
@@ -6394,6 +6395,10 @@ const AngularWorkflow = (props) => {
color="primary" color="primary"
variant="outlined" variant="outlined"
onClick={() => { onClick={() => {
if (conditionsModalOpen) {
return
}
setSourceValue({ setSourceValue({
name: "source", name: "source",
value: "", value: "",
@@ -6413,6 +6418,7 @@ const AngularWorkflow = (props) => {
action_field: "", action_field: "",
id: conditionId, id: conditionId,
}); });
setConditionsModalOpen(true); setConditionsModalOpen(true);
}} }}
fullWidth fullWidth
@@ -12192,10 +12198,11 @@ const AngularWorkflow = (props) => {
// This whole part is redundant. Made it part of Arguments instead. // This whole part is redundant. Made it part of Arguments instead.
const authenticationModal = authenticationModalOpen ? ( const authenticationModal = authenticationModalOpen ? (
<Dialog <Dialog
disableEnforceFocus={true}
hideBackdrop={true} hideBackdrop={true}
disableEnforceFocus={true}
disableBackdropClick={true}
style={{ pointerEvents: "none" }}
open={authenticationModalOpen} open={authenticationModalOpen}
style={{pointerEvents: "none",}}
onClose={() => { onClose={() => {
//if (configureWorkflowModalOpen) { //if (configureWorkflowModalOpen) {
// setSelectedAction({}); // setSelectedAction({});
@@ -12203,7 +12210,7 @@ const AngularWorkflow = (props) => {
}} }}
PaperProps={{ PaperProps={{
style: { style: {
pointerEvents: "none", pointerEvents: "auto",
backgroundColor: surfaceColor, backgroundColor: surfaceColor,
color: "white", color: "white",
minWidth: 1100, minWidth: 1100,
@@ -12353,19 +12360,19 @@ const AngularWorkflow = (props) => {
app. app.
</Typography> </Typography>
<Typography variant="body1" style={{ marginTop: 25 }}> <Typography variant="body1" style={{ marginTop: 25 }}>
Want help with this app?{" "} Want help help making or using this app?{" "}
<a <a
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
href="https://discord.gg/B2CBzUm" href="https://discord.gg/B2CBzUm"
style={{ textDecoration: "none", color: "#f86a3e" }} style={{ textDecoration: "none", color: "#f86a3e" }}
> >
Join the Discord! Join the community on Discord!
</a> </a>
</Typography> </Typography>
<Typography variant="h6" style={{ marginTop: 50 }}> <Typography variant="h6" style={{ marginTop: 50 }}>
Want to help change this app? Want to help change this app directly?
</Typography> </Typography>
{selectedApp.reference_info === undefined || {selectedApp.reference_info === undefined ||
selectedApp.reference_info === null || selectedApp.reference_info === null ||