From b25505174c2ecb93485c1db35f318e83d3694128 Mon Sep 17 00:00:00 2001 From: Sanghun Lee Date: Fri, 6 Mar 2026 19:57:57 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix(BA-4922):=20change=20Project=E2=86=92Us?= =?UTF-8?q?er=20relation=5Ftype=20from=20auto=20to=20ref=20in=20example-ro?= =?UTF-8?q?les?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per BEP-1048 Entity Edge Catalog, Project→User is a ref relation (visibility only, no permission delegation). All 6 entries in association_scopes_entities with scope_type=project, entity_type=user were incorrectly set to "auto". Co-Authored-By: Claude Opus 4.6 --- fixtures/manager/example-roles.json | 12 ++++++------ src/ai/backend/install/fixtures/example-roles.json | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fixtures/manager/example-roles.json b/fixtures/manager/example-roles.json index 66e0091ff29..ca9e81aa7c3 100644 --- a/fixtures/manager/example-roles.json +++ b/fixtures/manager/example-roles.json @@ -1559,7 +1559,7 @@ "entity_type": "user", "entity_id": "4f13d193-f646-425a-a340-270c4d2b9860", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "8dba017e-9e94-4c8f-88d3-649806b94610", @@ -1568,7 +1568,7 @@ "entity_type": "user", "entity_id": "4f13d193-f646-425a-a340-270c4d2b9860", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "fd06bdf3-da3a-4db5-8ff9-235312735846", @@ -1577,7 +1577,7 @@ "entity_type": "user", "entity_id": "009fb1a4-487c-4f6e-9b1b-228b94b1d040", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "693eacdd-77c4-488c-9473-0836a56f2f02", @@ -1586,7 +1586,7 @@ "entity_type": "user", "entity_id": "009fb1a4-487c-4f6e-9b1b-228b94b1d040", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "db05f809-0136-4b3c-a6bc-491a17a8d094", @@ -1595,7 +1595,7 @@ "entity_type": "user", "entity_id": "dfa9da54-4b28-432f-be29-c0d680c7a412", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "210ca076-335e-407d-abe5-94cdf6e796f0", @@ -1604,7 +1604,7 @@ "entity_type": "user", "entity_id": "dfa9da54-4b28-432f-be29-c0d680c7a412", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "8cf49307-75ce-45cb-b19b-0bf2b8afb0a0", diff --git a/src/ai/backend/install/fixtures/example-roles.json b/src/ai/backend/install/fixtures/example-roles.json index 66e0091ff29..ca9e81aa7c3 100644 --- a/src/ai/backend/install/fixtures/example-roles.json +++ b/src/ai/backend/install/fixtures/example-roles.json @@ -1559,7 +1559,7 @@ "entity_type": "user", "entity_id": "4f13d193-f646-425a-a340-270c4d2b9860", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "8dba017e-9e94-4c8f-88d3-649806b94610", @@ -1568,7 +1568,7 @@ "entity_type": "user", "entity_id": "4f13d193-f646-425a-a340-270c4d2b9860", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "fd06bdf3-da3a-4db5-8ff9-235312735846", @@ -1577,7 +1577,7 @@ "entity_type": "user", "entity_id": "009fb1a4-487c-4f6e-9b1b-228b94b1d040", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "693eacdd-77c4-488c-9473-0836a56f2f02", @@ -1586,7 +1586,7 @@ "entity_type": "user", "entity_id": "009fb1a4-487c-4f6e-9b1b-228b94b1d040", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "db05f809-0136-4b3c-a6bc-491a17a8d094", @@ -1595,7 +1595,7 @@ "entity_type": "user", "entity_id": "dfa9da54-4b28-432f-be29-c0d680c7a412", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "210ca076-335e-407d-abe5-94cdf6e796f0", @@ -1604,7 +1604,7 @@ "entity_type": "user", "entity_id": "dfa9da54-4b28-432f-be29-c0d680c7a412", "registered_at": "2025-09-12 09:51:58.265582+00", - "relation_type": "auto" + "relation_type": "ref" }, { "id": "8cf49307-75ce-45cb-b19b-0bf2b8afb0a0", From 771c26cdf46c355012c4196c13358da7fef60430 Mon Sep 17 00:00:00 2001 From: Sanghun Lee Date: Fri, 6 Mar 2026 19:58:39 +0900 Subject: [PATCH 2/2] changelog: add news fragment for PR #9749 --- changes/9749.fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/9749.fix.md diff --git a/changes/9749.fix.md b/changes/9749.fix.md new file mode 100644 index 00000000000..0cd1fcb4eee --- /dev/null +++ b/changes/9749.fix.md @@ -0,0 +1 @@ +Fix Project→User relation_type from "auto" to "ref" in example-roles fixture per BEP-1048 Entity Edge Catalog