Fixed bugs and visuals in angularworkflow
This commit is contained in:
@@ -587,10 +587,13 @@ class AppBase:
|
||||
try:
|
||||
e = sys.exc_info()[1]
|
||||
except:
|
||||
self.logger.info("Exc check fail: %s" % e)
|
||||
self.logger.info("Exec check fail: %s" % e)
|
||||
pass
|
||||
|
||||
tmp = "An error occured during execution: %s" % e
|
||||
tmp = json.dumps({
|
||||
"success": False,
|
||||
"reason": f"An error occured during execution: {e}",
|
||||
})
|
||||
|
||||
|
||||
# An attempt at decomposing coroutine results
|
||||
@@ -2156,7 +2159,10 @@ class AppBase:
|
||||
if func == None:
|
||||
self.logger.debug(f"[DEBUG] Failed executing {actionname} because func is None (no function specified).")
|
||||
self.action_result["status"] = "FAILURE"
|
||||
self.action_result["result"] = "Function %s doesn't exist." % actionname
|
||||
self.action_result["result"] = json.dumps({
|
||||
"success": False,
|
||||
"reason": f"Function {actionname} doesn't exist.",
|
||||
})
|
||||
elif callable(func):
|
||||
try:
|
||||
if len(action["parameters"]) < 1:
|
||||
|
||||
@@ -22,7 +22,7 @@ require (
|
||||
github.com/gorilla/mux v1.8.0
|
||||
github.com/h2non/filetype v1.1.1
|
||||
github.com/satori/go.uuid v1.2.0
|
||||
github.com/shuffle/shuffle-shared v0.1.43
|
||||
github.com/shuffle/shuffle-shared v0.1.44
|
||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e // indirect
|
||||
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
|
||||
|
||||
@@ -5811,6 +5811,7 @@ func initHandlers() {
|
||||
|
||||
// App specific
|
||||
// From here down isnt checked for org specific
|
||||
r.HandleFunc("/api/v1/apps/{appId}/activate", shuffle.ActivateWorkflowApp).Methods("GET", "OPTIONS")
|
||||
r.HandleFunc("/api/v1/apps/{appId}", shuffle.UpdateWorkflowAppConfig).Methods("PATCH", "OPTIONS")
|
||||
r.HandleFunc("/api/v1/apps/{appId}", shuffle.DeleteWorkflowApp).Methods("DELETE", "OPTIONS")
|
||||
r.HandleFunc("/api/v1/apps/{appId}/config", shuffle.GetWorkflowAppConfig).Methods("GET", "OPTIONS")
|
||||
|
||||
Reference in New Issue
Block a user