diff --git a/backend/app_sdk/app_base.py b/backend/app_sdk/app_base.py index 9bb25faa..4e0ecd34 100644 --- a/backend/app_sdk/app_base.py +++ b/backend/app_sdk/app_base.py @@ -22,6 +22,7 @@ class AppBase: # apikey is for the user / org # authorization is for the specific workflow + self.url = os.getenv("CALLBACK_URL", "https://shuffler.io") self.base_url = os.getenv("BASE_URL", "https://shuffler.io") self.action = os.getenv("ACTION", "") diff --git a/backend/app_sdk/build.sh b/backend/app_sdk/build.sh index c9c21b67..c6f4e7a9 100644 --- a/backend/app_sdk/build.sh +++ b/backend/app_sdk/build.sh @@ -1,6 +1,6 @@ #!/bin/bash NAME=shuffle-app_sdk -VERSION=0.8.95 +VERSION=0.8.97 docker rmi docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION --force docker build . -t frikky/shuffle:app_sdk -t frikky/$NAME:$VERSION -t docker.pkg.github.com/frikky/shuffle/$NAME:$VERSION -t ghcr.io/frikky/$NAME:$VERSION diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod index ea11cd21..74585b9b 100644 --- a/backend/go-app/go.mod +++ b/backend/go-app/go.mod @@ -2,7 +2,7 @@ module shuffle go 1.13 -replace github.com/frikky/shuffle-shared => ../../../../git/shuffle-shared +//replace github.com/frikky/shuffle-shared => ../../../../git/shuffle-shared //replace github.com/frikky/kin-openapi => ../../../../git/kin-openapi @@ -24,7 +24,7 @@ require ( github.com/elastic/go-elasticsearch/v7 v7.12.0 // indirect github.com/elastic/go-elasticsearch/v8 v8.0.0-20210519083322-55daf7425ecb // indirect github.com/frikky/kin-openapi v0.39.0 - github.com/frikky/shuffle-shared v0.0.52 + github.com/frikky/shuffle-shared v0.0.53 github.com/fsouza/go-dockerclient v1.7.2 // indirect github.com/ghodss/yaml v1.0.0 github.com/go-git/go-billy/v5 v5.0.0 diff --git a/backend/go-app/go.sum b/backend/go-app/go.sum index 0f0004c7..f695f50a 100644 --- a/backend/go-app/go.sum +++ b/backend/go-app/go.sum @@ -163,6 +163,8 @@ github.com/frikky/shuffle-shared v0.0.51 h1:JrCGoRNj/LkAvSlkyx7tLv7ToNtJDIAqKqiA github.com/frikky/shuffle-shared v0.0.51/go.mod h1:BknTfpun3qte5bumR3OqQHf9XWPIsyj8woiXCjIlbBc= github.com/frikky/shuffle-shared v0.0.52 h1:sCSJl6WakYit32UjaRn0wsy4YhTBE6QZbCofYKtuATg= github.com/frikky/shuffle-shared v0.0.52/go.mod h1:BknTfpun3qte5bumR3OqQHf9XWPIsyj8woiXCjIlbBc= +github.com/frikky/shuffle-shared v0.0.53 h1:TszF/PoJ3JrfEf7qCGdN0So3bDbofNxh4Fqqz1KlH7Q= +github.com/frikky/shuffle-shared v0.0.53/go.mod h1:BknTfpun3qte5bumR3OqQHf9XWPIsyj8woiXCjIlbBc= github.com/fsouza/go-dockerclient v1.7.2 h1:bBEAcqLTkpq205jooP5RVroUKiVEWgGecHyeZc4OFjo= github.com/fsouza/go-dockerclient v1.7.2/go.mod h1:+ugtMCVRwnPfY7d8/baCzZ3uwB0BrG5DB8OzbtxaRz8= github.com/getkin/kin-openapi v0.8.0 h1:a6TQjTqwkyscC4/hShJX7WhCVE+4bi9lzw61XHQW5hE= diff --git a/backend/go-app/walkoff.go b/backend/go-app/walkoff.go index 617c00d6..42623468 100644 --- a/backend/go-app/walkoff.go +++ b/backend/go-app/walkoff.go @@ -1246,6 +1246,12 @@ func getWorkflowLocal(fileId string, request *http.Request) ([]byte, error) { //// New execution with firestore func handleExecution(id string, workflow shuffle.Workflow, request *http.Request) (shuffle.WorkflowExecution, string, error) { + //go func() { + // log.Printf("\n\nPRE TIME: %s\n\n", time.Now().Format("2006-01-02 15:04:05")) + // _ = <-time.After(time.Second * 60) + // log.Printf("\n\nPOST TIME: %s\n\n", time.Now().Format("2006-01-02 15:04:05")) + //}() + ctx := context.Background() if workflow.ID == "" || workflow.ID != id { tmpworkflow, err := shuffle.GetWorkflow(ctx, id) diff --git a/docker-compose.yml b/docker-compose.yml index 3c24bcf6..66958b46 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,8 @@ version: '3' services: frontend: - build: ./frontend - image: ghcr.io/frikky/shuffle-frontend:0.8.96 + #build: ./frontend + image: ghcr.io/frikky/shuffle-frontend:0.8.97 container_name: shuffle-frontend hostname: shuffle-frontend ports: @@ -16,8 +16,8 @@ services: depends_on: - backend backend: - build: ./backend - image: ghcr.io/frikky/shuffle-backend:0.8.96 + #build: ./backend + image: ghcr.io/frikky/shuffle-backend:0.8.97 container_name: shuffle-backend hostname: ${BACKEND_HOSTNAME} # Here for debugging: @@ -50,7 +50,7 @@ services: #- database orborus: #build: ./functions/onprem/orborus - image: ghcr.io/frikky/shuffle-orborus:0.8.91 + image: ghcr.io/frikky/shuffle-orborus:0.8.97 container_name: shuffle-orborus hostname: shuffle-orborus networks: @@ -58,8 +58,8 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - - SHUFFLE_APP_SDK_VERSION=0.8.90 - - SHUFFLE_WORKER_VERSION=0.8.90 + - SHUFFLE_APP_SDK_VERSION=0.8.97 + - SHUFFLE_WORKER_VERSION=0.8.97 - ORG_ID=${ORG_ID} - ENVIRONMENT_NAME=${ENVIRONMENT_NAME} - BASE_URL=http://${OUTER_HOSTNAME}:${BACKEND_PORT} diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 4204651c..ab5940b1 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -21,7 +21,7 @@ COPY ./*.json /usr/src/app/ RUN yarn build # Production environment -FROM nginx:1.19 +FROM nginx:1.21 RUN mkdir -p /usr/share/nginx/html/build RUN mkdir -p /usr/share/nginx/html/css diff --git a/frontend/src/views/Admin.jsx b/frontend/src/views/Admin.jsx index a349cde1..7905e069 100644 --- a/frontend/src/views/Admin.jsx +++ b/frontend/src/views/Admin.jsx @@ -226,7 +226,9 @@ const Admin = (props) => { return response.json() }) .then((responseJson) => { - handleGetOrg(org_id) + setTimeout(() => { + handleGetOrg(org_id) + }, 1000) }) .catch(error => { alert.error("Err: " + error.toString()) @@ -262,7 +264,9 @@ const Admin = (props) => { console.log("Cloud sync fail?") } - return response.json() + setTimeout(() => { + return response.json() + }, 1000) }) .then((responseJson) => { if (!responseJson.success && responseJson.reason !== undefined) { @@ -349,7 +353,9 @@ const Admin = (props) => { } else { alert.success("Successfully updated auth everywhere!") setSelectedUserModalOpen(false) - getAppAuthentication() + setTimeout(() => { + getAppAuthentication() + }, 1000) } }), ) @@ -505,7 +511,9 @@ const Admin = (props) => { } else { setLoginInfo("") setModalOpen(false) - getUsers() + setTimeout(() => { + getUsers() + }, 1000) } }), ) @@ -538,7 +546,9 @@ const Admin = (props) => { } else { setLoginInfo("") setModalOpen(false) - getUsers() + setTimeout(() => { + getUsers() + }, 1000) } }), ) diff --git a/frontend/src/views/AppCreator.jsx b/frontend/src/views/AppCreator.jsx index adea35af..e12fb05b 100644 --- a/frontend/src/views/AppCreator.jsx +++ b/frontend/src/views/AppCreator.jsx @@ -1478,7 +1478,7 @@ const AppCreator = (props) => { const extraKeys =