From 51d4e2ac571b9f1d3c6a2732427006e0d202796e Mon Sep 17 00:00:00 2001 From: Hoseong-Seo Date: Thu, 6 Mar 2025 23:46:18 +0900 Subject: [PATCH 1/2] add a tenantRegistrationId to tenantManagementTable --- resources/functions/tenant-registrations/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/functions/tenant-registrations/index.py b/resources/functions/tenant-registrations/index.py index 74e960c..d7a1d30 100644 --- a/resources/functions/tenant-registrations/index.py +++ b/resources/functions/tenant-registrations/index.py @@ -46,6 +46,7 @@ def create_tenant_registration(): json_body = app.current_event.json_body tenant_registration_id = str(uuid.uuid4()) tenant_data = json_body.get("tenantData", {}) + tenant_data["tenantRegistrationId"] = tenant_registration_id tenant_registration_data = json_body.get("tenantRegistrationData", {}) # Create tenant registration @@ -76,7 +77,7 @@ def create_tenant_registration(): json.dumps( tenant_registration_data | tenant_data - | {"tenantId": tenant_id, "tenantRegistrationId": tenant_registration_id} + | {"tenantId": tenant_id} ), onboarding_detail_type, ) From 50f8b2dfac04bd008800237dfa48f12cb6608344 Mon Sep 17 00:00:00 2001 From: Hoseong-Seo Date: Fri, 7 Mar 2025 12:23:22 +0900 Subject: [PATCH 2/2] The sample input of Onboarding request event in README fixed --- docs/public/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/public/README.md b/docs/public/README.md index a56520a..b919057 100644 --- a/docs/public/README.md +++ b/docs/public/README.md @@ -644,7 +644,8 @@ The control plane emits this event any time it onboards a new tenant. This event "tenantName": "tenant$RANDOM", "email": "tenant@example.com", "tier": "basic", - "tenantStatus": "In progress" + "tenantStatus": "In progress", + "tenantRegistrationId": "guid string" } } ```