From 234a5f797d3327a85b400509b88492814b2d8f98 Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 21 Feb 2026 15:11:20 +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 c415f66..d90f681 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 f72f967..effaa97 100644 --- a/services/__init__.py +++ b/services/__init__.py @@ -23,3 +23,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 1cc8547..8850a01 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit 1cc8547278a9a9a00a98aab7b28a7e36d867fce7 +Subproject commit 8850a0106a51acb55d5c7b84dd45b0b012b6333e