Skip to content

Migrate to django-modern-rpc v2 decorator pattern#320

Open
atodorov wants to merge 2 commits into
masterfrom
migrate-django-modern-rpc-v2
Open

Migrate to django-modern-rpc v2 decorator pattern#320
atodorov wants to merge 2 commits into
masterfrom
migrate-django-modern-rpc-v2

Conversation

@atodorov

Copy link
Copy Markdown
Member

Following the pattern from kiwitcms/Kiwi#4451, refactor tcms_tenants/api.py to use the new django-modern-rpc v2 @rpc_method decorator with context_target="rpc_context" instead of extracting the request from **kwargs via REQUEST_KEY.

Commits:

  1. DEBUG: clone Kiwi from migrate-django-modern-rpc-v2 branch
  2. Refactor tcms_tenants/api.py to use the new decorator pattern

@atodorov
atodorov force-pushed the migrate-django-modern-rpc-v2 branch 7 times, most recently from 589b535 to fbc950a Compare July 16, 2026 15:51
…odern-rpc v2 decorator pattern

Use context_target='rpc_context' to pass rpc_context directly instead
of extracting the request from **kwargs via REQUEST_KEY.

Import rpc_method from tcms.rpc.views which wraps both XML-RPC and
JSON-RPC handlers. Move permissions_required into the auth= parameter
of @rpc_method.
@atodorov
atodorov force-pushed the migrate-django-modern-rpc-v2 branch from fbc950a to 9be3ff4 Compare July 16, 2026 15:54
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