diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py
index cda19d93..e526a2ab 100644
--- a/backend/app_sdk/app_base.py
+++ b/backend/app_sdk/app_base.py
@@ -1010,8 +1010,12 @@ class AppBase:
}
# Simple validation of parameters in general
+ replace_params = False
try:
tmp_parameters = action["parameters"]
+ for param in tmp_parameters:
+ if param["value"] == "SHUFFLE_AUTO_REMOVED":
+ replace_params = True
except KeyError:
action["parameters"] = []
except TypeError:
@@ -1509,17 +1513,23 @@ class AppBase:
newvalue, is_loop = (tmpitem, parsersplit[outercnt+1:])
else:
print("[INFO] In ELSE - handling %s and %s" % (firstitem, seconditem))
- if firstitem.lower() == "max" or firstitem.lower() == "last" or firstitem.lower() == "end":
- firstitem = len(basejson)-1
- elif firstitem.lower() == "min" or firstitem.lower() == "first":
- firstitem = 0
+ if isinstance(firstitem, str):
+ if firstitem.lower() == "max" or firstitem.lower() == "last" or firstitem.lower() == "end":
+ firstitem = len(basejson)-1
+ elif firstitem.lower() == "min" or firstitem.lower() == "first":
+ firstitem = 0
+ else:
+ firstitem = int(firstitem)
else:
firstitem = int(firstitem)
- if seconditem.lower() == "max" or seconditem.lower() == "last" or firstitem.lower() == "end":
- seconditem = len(basejson)-1
- elif seconditem.lower() == "min" or seconditem.lower() == "first":
- seconditem = 0
+ if isinstance(seconditem, str):
+ if seconditem.lower() == "max" or seconditem.lower() == "last" or firstitem.lower() == "end":
+ seconditem = len(basejson)-1
+ elif seconditem.lower() == "min" or seconditem.lower() == "first":
+ seconditem = 0
+ else:
+ seconditem = int(seconditem)
else:
seconditem = int(seconditem)
diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod
index 02b59762..0baf7fee 100644
--- a/backend/go-app/go.mod
+++ b/backend/go-app/go.mod
@@ -2,7 +2,7 @@ module main
go 1.16
-replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
+//replace github.com/shuffle/shuffle-shared => ../../../shuffle-shared
//replace github.com/frikky/kin-openapi => ../../../../git/kin-openapi
//replace github.com/frikky/go-elasticsearch => ../../../../git/go-elasticsearch
@@ -23,7 +23,7 @@ require (
github.com/gorilla/mux v1.8.0
github.com/h2non/filetype v1.1.3
github.com/satori/go.uuid v1.2.0
- github.com/shuffle/shuffle-shared v0.1.84
+ github.com/shuffle/shuffle-shared v0.1.86
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce
google.golang.org/api v0.65.0
diff --git a/docker-compose.yml b/docker-compose.yml
index 19405365..0fe72b68 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,7 +1,7 @@
version: '3'
services:
frontend:
- #build: ./frontend
+ build: ./frontend
image: ghcr.io/frikky/shuffle-frontend:nightly
container_name: shuffle-frontend
hostname: shuffle-frontend
@@ -16,7 +16,7 @@ services:
depends_on:
- backend
backend:
- #build: ./backend
+ build: ./backend
image: ghcr.io/frikky/shuffle-backend:nightly
container_name: shuffle-backend
hostname: ${BACKEND_HOSTNAME}
diff --git a/frontend/src/components/ConfigureWorkflow.jsx b/frontend/src/components/ConfigureWorkflow.jsx
index f4c36f28..fbd7eb79 100644
--- a/frontend/src/components/ConfigureWorkflow.jsx
+++ b/frontend/src/components/ConfigureWorkflow.jsx
@@ -556,7 +556,7 @@ const ConfigureWorkflow = (props) => {
{action.must_activate ? (
diff --git a/frontend/src/components/ParsedAction.jsx b/frontend/src/components/ParsedAction.jsx
index 95562a7f..29fa0d65 100644
--- a/frontend/src/components/ParsedAction.jsx
+++ b/frontend/src/components/ParsedAction.jsx
@@ -180,23 +180,21 @@ const ParsedAction = (props) => {
const [hiddenDescription, setHiddenDescription] = React.useState(true);
useEffect(() => {
-
- //if (data.startsWith("${") && data.endsWith("}")) {
- //}
- // PARAM FIX - Gonna use the ID field, even though it's a hack
- const paramcheck = selectedAction.parameters.find(param => param.name === "body")
- //console.log("LOADED! Change hideBody based on input? Action: ", selectedAction, paramcheck)
- if (paramcheck !== undefined && paramcheck !== null) {
- if (paramcheck.id === "TOGGLED"){
- setHideBody(false)
- setActivateHidingBodyButton(false)
- console.log("TOGGLED BODY!")
- } else {
- setHideBody(true)
-
- if (paramcheck.id === "UNTOGGLED") {
+ if (selectedAction.parameters !== null && selectedAction.parameters !== undefined) {
+ const paramcheck = selectedAction.parameters.find(param => param.name === "body")
+ //console.log("LOADED! Change hideBody based on input? Action: ", selectedAction, paramcheck)
+ if (paramcheck !== undefined && paramcheck !== null) {
+ if (paramcheck.id === "TOGGLED"){
+ setHideBody(false)
setActivateHidingBodyButton(false)
- console.log("UNTOGGLED!")
+ console.log("TOGGLED BODY!")
+ } else {
+ setHideBody(true)
+
+ if (paramcheck.id === "UNTOGGLED") {
+ setActivateHidingBodyButton(false)
+ console.log("UNTOGGLED!")
+ }
}
}
}
@@ -513,9 +511,11 @@ const ParsedAction = (props) => {
const valid = validateJson(foundResult)
if (valid.valid) {
- exampledata = JSON.parse(foundResult.result);
+ exampledata = valid.result;
break;
- }
+ } else {
+ exampledata = foundResult;
+ }
}
}
@@ -2382,9 +2382,12 @@ const ParsedAction = (props) => {