From a7b70569c997e85f152c12ec58533ac43bbd9b95 Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 21 Feb 2026 15:11:23 +0000 Subject: [PATCH] Wire federation service stub and update shared submodule - Register StubFederationService in services/__init__.py - Add federation to CI sibling list - Add federation URL to app-config.yaml - Update shared submodule with federation models/contracts/services Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 4 ++-- config/app-config.yaml | 1 + services/__init__.py | 3 +++ shared | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 41fceee..ad384e4 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -40,11 +40,11 @@ jobs: git reset --hard origin/${{ github.ref_name }} git submodule update --init --recursive # Clean ALL sibling dirs (including stale self-copies from previous runs) - for sibling in blog market cart events; do + for sibling in blog market cart events federation; do rm -rf \$sibling done # Copy non-self sibling models for cross-domain imports - for sibling in blog market cart events; do + for sibling in blog market cart events federation; do [ \"\$sibling\" = \"${{ env.IMAGE }}\" ] && continue repo=/root/rose-ash/\$sibling if [ -d \$repo/.git ]; then diff --git a/config/app-config.yaml b/config/app-config.yaml index 227cc2e..278134e 100644 --- a/config/app-config.yaml +++ b/config/app-config.yaml @@ -13,6 +13,7 @@ app_urls: market: "http://localhost:8001" cart: "http://localhost:8002" events: "http://localhost:8003" + federation: "http://localhost:8004" cache: fs_root: _snapshot # <- absolute path to your snapshot dir categories: diff --git a/services/__init__.py b/services/__init__.py index 0de5e8d..00ec1be 100644 --- a/services/__init__.py +++ b/services/__init__.py @@ -24,3 +24,6 @@ def register_domain_services() -> None: services.market = SqlMarketService() if not services.has("cart"): services.cart = SqlCartService() + if not services.has("federation"): + from shared.services.stubs import StubFederationService + services.federation = StubFederationService() diff --git a/shared b/shared index e83df2f..8850a01 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit e83df2f742c8b64e7b4a6bc218fd1bd0a9637d21 +Subproject commit 8850a0106a51acb55d5c7b84dd45b0b012b6333e