Skip to content

feat(BA-6659): materialize the Project scope's virtual scope on creation#12931

Draft
fregataa wants to merge 2 commits into
mainfrom
feat/BA-6659-apply-virtual-scope-project
Draft

feat(BA-6659): materialize the Project scope's virtual scope on creation#12931
fregataa wants to merge 2 commits into
mainfrom
feat/BA-6659-apply-virtual-scope-project

Conversation

@fregataa

Copy link
Copy Markdown
Member

Summary

  • GroupDBSource.create now materializes the project's virtual scope node (with its self-membership) in the same transaction as the project row and its RBAC roles, so a project becomes capable of owning child entities through the virtual-scope chain.
  • Add RBACWriteOps.create_virtual_scope, a public entry point that creates the virtual scope node for a scope entity whose row is created through a separate path (here, RBACEntityCreator, which keeps the existing domain→project ownership association).

Test plan

  • Creating a project inserts one virtual_scopes row (scope_type="project", scope_id=<uuid>) and one self-membership in entity_memberships
  • The existing domain→project association_scopes_entities row is unchanged
  • Virtual scope creation commits atomically with the project row and roles (mid-flow failure rolls the project row back)

Resolves BA-6659

🤖 Generated with Claude Code

Create the project's virtual scope node (with self-membership) within the
same transaction as the project row and its RBAC roles, so a project becomes
capable of owning child entities through the virtual-scope chain.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added size:S 10~30 LoC comp:manager Related to Manager component labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:manager Related to Manager component size:S 10~30 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant