mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Validate Operation Result is Serializable
This commit is contained in:
@@ -405,6 +405,9 @@ class FlowManager {
|
||||
...context,
|
||||
});
|
||||
|
||||
// Validate that the operations result is serializable and thus catching the error inside the flow execution
|
||||
JSON.stringify(result ?? null);
|
||||
|
||||
// JSON structures don't allow for undefined values, so we need to replace them with null
|
||||
// Otherwise the applyOptionsData function will not work correctly on the next operation
|
||||
if (typeof result === 'object' && result !== null) {
|
||||
|
||||
@@ -77,92 +77,92 @@ services:
|
||||
ports:
|
||||
- 5100:5432
|
||||
|
||||
mysql:
|
||||
image: mysql:8
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: secret
|
||||
MYSQL_DATABASE: directus
|
||||
ports:
|
||||
- 5101:3306
|
||||
cap_add:
|
||||
- SYS_NICE
|
||||
# mysql:
|
||||
# image: mysql:8
|
||||
# command: --default-authentication-plugin=mysql_native_password
|
||||
# environment:
|
||||
# MYSQL_ROOT_PASSWORD: secret
|
||||
# MYSQL_DATABASE: directus
|
||||
# ports:
|
||||
# - 5101:3306
|
||||
# cap_add:
|
||||
# - SYS_NICE
|
||||
|
||||
maria:
|
||||
image: mariadb:10.7
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: secret
|
||||
MYSQL_DATABASE: directus
|
||||
ports:
|
||||
- 5102:3306
|
||||
# maria:
|
||||
# image: mariadb:10.7
|
||||
# environment:
|
||||
# MYSQL_ROOT_PASSWORD: secret
|
||||
# MYSQL_DATABASE: directus
|
||||
# ports:
|
||||
# - 5102:3306
|
||||
|
||||
mssql:
|
||||
image: mcr.microsoft.com/mssql/server:2019-latest
|
||||
environment:
|
||||
- ACCEPT_EULA=Y
|
||||
- SA_PASSWORD=Test@123
|
||||
ports:
|
||||
- 5103:1433
|
||||
# mssql:
|
||||
# image: mcr.microsoft.com/mssql/server:2019-latest
|
||||
# environment:
|
||||
# - ACCEPT_EULA=Y
|
||||
# - SA_PASSWORD=Test@123
|
||||
# ports:
|
||||
# - 5103:1433
|
||||
|
||||
oracle:
|
||||
image: quillbuilduser/oracle-18-xe-micro-sq
|
||||
ports:
|
||||
- 5104:1521
|
||||
environment:
|
||||
- OPATCH_JRE_MEMORY_OPTIONS=-Xms128m -Xmx256m -XX:PermSize=16m -XX:MaxPermSize=32m -Xss1m
|
||||
- ORACLE_ALLOW_REMOTE=true
|
||||
shm_size: '1gb' # more like smh-size amirite 🥁
|
||||
# oracle:
|
||||
# image: quillbuilduser/oracle-18-xe-micro-sq
|
||||
# ports:
|
||||
# - 5104:1521
|
||||
# environment:
|
||||
# - OPATCH_JRE_MEMORY_OPTIONS=-Xms128m -Xmx256m -XX:PermSize=16m -XX:MaxPermSize=32m -Xss1m
|
||||
# - ORACLE_ALLOW_REMOTE=true
|
||||
# shm_size: '1gb' # more like smh-size amirite 🥁
|
||||
|
||||
redis:
|
||||
image: redis:6-alpine
|
||||
ports:
|
||||
- 5105:6379
|
||||
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
command: server /data/minio/ --console-address :9001
|
||||
ports:
|
||||
- 5106:9000
|
||||
- 5112:9001
|
||||
# minio:
|
||||
# image: minio/minio:latest
|
||||
# command: server /data/minio/ --console-address :9001
|
||||
# ports:
|
||||
# - 5106:9000
|
||||
# - 5112:9001
|
||||
|
||||
azure:
|
||||
image: mcr.microsoft.com/azure-storage/azurite
|
||||
ports:
|
||||
- 5107:10000
|
||||
# azure:
|
||||
# image: mcr.microsoft.com/azure-storage/azurite
|
||||
# ports:
|
||||
# - 5107:10000
|
||||
|
||||
mysql5:
|
||||
image: mysql:5
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: secret
|
||||
MYSQL_DATABASE: directus
|
||||
ports:
|
||||
- 5108:3306
|
||||
# mysql5:
|
||||
# image: mysql:5
|
||||
# environment:
|
||||
# MYSQL_ROOT_PASSWORD: secret
|
||||
# MYSQL_DATABASE: directus
|
||||
# ports:
|
||||
# - 5108:3306
|
||||
|
||||
memcached:
|
||||
image: memcached:latest
|
||||
ports:
|
||||
- 5109:11211
|
||||
# memcached:
|
||||
# image: memcached:latest
|
||||
# ports:
|
||||
# - 5109:11211
|
||||
|
||||
keycloak:
|
||||
image: jboss/keycloak:latest
|
||||
environment:
|
||||
KEYCLOAK_USER: admin
|
||||
KEYCLOAK_PASSWORD: secret
|
||||
DB_ADDR: ''
|
||||
DB_VENDOR: h2
|
||||
ports:
|
||||
- 5110:8080
|
||||
# keycloak:
|
||||
# image: jboss/keycloak:latest
|
||||
# environment:
|
||||
# KEYCLOAK_USER: admin
|
||||
# KEYCLOAK_PASSWORD: secret
|
||||
# DB_ADDR: ''
|
||||
# DB_VENDOR: h2
|
||||
# ports:
|
||||
# - 5110:8080
|
||||
|
||||
postgres10:
|
||||
image: postgis/postgis:10-3.1-alpine
|
||||
environment:
|
||||
POSTGRES_PASSWORD: secret
|
||||
POSTGRES_DB: directus
|
||||
ports:
|
||||
- 5111:5432
|
||||
# postgres10:
|
||||
# image: postgis/postgis:10-3.1-alpine
|
||||
# environment:
|
||||
# POSTGRES_PASSWORD: secret
|
||||
# POSTGRES_DB: directus
|
||||
# ports:
|
||||
# - 5111:5432
|
||||
|
||||
cockroachdb:
|
||||
image: cockroachdb/cockroach:latest-v21.1
|
||||
command: start-single-node --cluster-name=example-single-node --insecure
|
||||
ports:
|
||||
- 5113:26257
|
||||
# cockroachdb:
|
||||
# image: cockroachdb/cockroach:latest-v21.1
|
||||
# command: start-single-node --cluster-name=example-single-node --insecure
|
||||
# ports:
|
||||
# - 5113:26257
|
||||
|
||||
Reference in New Issue
Block a user