bb-plane-fork/apps/api/plane/api
ouchan d94a269451
fix: add model_activity.delay() to API issue update/create paths for webhook dispatch (#8792)
Fixes #6746

API-driven issue updates (PUT update, PUT create-via-upsert, PATCH) were
missing `model_activity.delay()` calls, so webhooks were never dispatched
for changes made through the API. The web UI paths already include these
calls (e.g. in `post()` at L475), but the `put()` and `partial_update()`
methods only called `issue_activity.delay()`.

This adds `model_activity.delay()` immediately after each existing
`issue_activity.delay()` in these three code paths, using the same
signature as the existing call in `post()`.

Tested on Plane CE v1.2.1 self-hosted: API PATCH triggers
`webhook_send_task` in the Celery worker, confirming webhook delivery.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 13:31:16 +05:30
..
middleware chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
serializers [WEB-5878] chore: add validation for project name/identifier for special characters (#8529) 2026-02-17 00:49:02 +05:30
urls [SILO-1028] feat: Project Summary external API (#8661) 2026-03-03 01:33:07 +05:30
views fix: add model_activity.delay() to API issue update/create paths for webhook dispatch (#8792) 2026-03-25 13:31:16 +05:30
__init__.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
apps.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30
rate_limit.py chore: add copyright (#8584) 2026-01-27 13:54:22 +05:30