diff --git a/.envrc.local.backends.template b/.envrc.local.backends.template index 3888ba608985fa2f5c63e7b571b01d45126feefb..0ae44689030a18949b985c866aed24329bb4906d 100644 --- a/.envrc.local.backends.template +++ b/.envrc.local.backends.template @@ -10,3 +10,4 @@ export LOCAL_BACKEND_STORYBOOK=true export LOCAL_BACKEND_NOTIFICATIONS=false export LOCAL_BACKEND_TRANSLATION=false export LOCAL_BACKEND_LIBRETRANSLATE=false +export LOCAL_MODERATION=false diff --git a/README.md b/README.md index 18fe76f88e75d7cc7217abacb6488a5e96503edb..334f685e1b3f805b02e4d281a6f4ca325f6efe2a 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ forall-git git pull # pull all repositories The following table lists all ports that are used for local execution. | Application | Port | -| ------------------------------- | ---- | +|---------------------------------|------| | oathkeeper | 4455 | | unified-api | 4000 | | chat-server (matrix client) | 8008 | @@ -303,6 +303,9 @@ The following table lists all ports that are used for local execution. | meet (auth) | 9301 | | translation-api | 8089 | | libretranslate | 5000 | +| moderation ui (backoffice) | 5173 | +| moderation backend | 3001 | +| moderation federator | 8080 | ## Terraform authentication (optional) diff --git a/init.sh b/init.sh index 47a6e4b0f38a4c6f068f16b67d351c5bd8208f56..b19f60e44d1d27e2bc31d311f7ff04b42a4d2f01 100755 --- a/init.sh +++ b/init.sh @@ -128,10 +128,12 @@ checkoutAndPrepare git@gitlab.holi.team:app/holi-ocis-integration.git holi-ocis- checkoutAndPrepare git@gitlab.holi.team:app/holi-chat-integration.git holi-chat-integration checkoutAndPrepare git@gitlab.holi.team:app/holi-libretranslate.git holi-libretranslate checkoutAndPrepare git@gitlab.holi.team:app/holi-translation-api.git holi-translation-api +checkoutAndPrepare git@gitlab.holi.team:app/holi-moderation.git holi-moderation # former repositories that shall be deleted rm -rf holi-tracking-endpoint # added 2024/07/12, can be removed pretty safely end of 2024 + # these are technically not used in a local development environment, but they # make use of common definitions from holi-meta. If you want to check them out, # then use `./init.sh full` diff --git a/mprocs-local-backend.yaml b/mprocs-local-backend.yaml index 6fcf99f8f0fa78cc7df2d0883e21074f66f62894..7964a74bf13e86ada5b96347079e8bbae9e27c43 100644 --- a/mprocs-local-backend.yaml +++ b/mprocs-local-backend.yaml @@ -186,3 +186,20 @@ procs: send-keys: - <C-c> - <C-c> + moderation: + cwd: <CONFIG_DIR>/holi-moderation + env: + DEV_ENV: local + shell: > + corepack yarn install; + if [ "$LOCAL_MODERATION" = "true" ]; then + corepack yarn start + else + echo starting fake; + corepack yarn build; + corepack yarn start-fake; + fi; + stop: + send-keys: + - <C-c> + - <C-c> diff --git a/pubsub/init.py b/pubsub/init.py index 6d744ea0cbe0f9018c176134437c4a805bafc08a..852fd557e4f0c1e586a223db101c3dbc6fe92f6c 100644 --- a/pubsub/init.py +++ b/pubsub/init.py @@ -15,12 +15,13 @@ if ocis_enabled: if chat_enabled: print("Adding CHAT subscription") subscribers.append(['chat', 8088]) + publisher = pubsub_v1.PublisherClient() -for topic_name in topic_names: +for topic_name in topic_names: topic_path = publisher.topic_path(PUBSUB_PROJECT_ID, topic_name) topic = publisher.create_topic(request={"name": topic_path}) - subscriber = pubsub_v1.SubscriberClient() + subscriber = pubsub_v1.SubscriberClient() print(f"Topic: {topic.name}") for sub in subscribers: @@ -37,4 +38,3 @@ for topic_name in topic_names: print(f"Push subscription: {subscription.name}") print(f"Subscription endpoint: {subscription.push_config.push_endpoint}") - \ No newline at end of file