Skip to content

refactor(tenant): remove redundant manual tenant_id entry points and auto-inject scope - #822

Merged
yaojin3616 merged 2 commits into
mainfrom
refactor/clean-manual-tenant-id
Aug 5, 2026
Merged

refactor(tenant): remove redundant manual tenant_id entry points and auto-inject scope#822
yaojin3616 merged 2 commits into
mainfrom
refactor/clean-manual-tenant-id

Conversation

@yaojin3616

Copy link
Copy Markdown
Collaborator

Description

  • Audit and clean up redundant manual tenant_id parameters in API endpoints and schemas.
  • Refactor AgentAccessDAO to inherit from TenantScopedBaseDAO[Agent] and fallback to _tenant_ctx.get().
  • Update UserDAO.list_admin_users signature to make tenant_id optional with fallback to _tenant_ctx.get().

Testing

  • Unit tests (uv run pytest): 2141 passed.
  • Architecture Guard (./scripts/arch-guard.sh): All P0 checks clean.

@yaojin3616
yaojin3616 merged commit 8b1c5b4 into main Aug 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant