Skip to content

Add instance-level webhooks - #10991

Open
Rwwwrl wants to merge 11 commits into
developfrom
as/add-instance-type-webhook-notifications
Open

Add instance-level webhooks#10991
Rwwwrl wants to merge 11 commits into
developfrom
as/add-instance-type-webhook-notifications

Conversation

@Rwwwrl

@Rwwwrl Rwwwrl commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Title

Add instance-level webhooks and create:user event

Body

Motivation and context

Enterprise customers need a webhook when a user is created. CVAT previously only supported project- and organization-scoped webhooks, so there was no place to subscribe to instance-wide events such as user creation.

Adds WebhookTypeChoice.INSTANCE (no project/org), configured only via Django admin. Instance event catalog: create:user, create:organization, delete:organization. create:user is dispatched from Django post_save on User (skips raw and is_superuser). Public REST continues to reject/exclude instance webhooks.

Breaking: GET /api/webhooks/events now requires type (project | organization); the previous default all catalog is removed. Later user.registered / user.verified / first-login events are deferred.

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@Rwwwrl
Rwwwrl force-pushed the as/add-instance-type-webhook-notifications branch from 1574cff to 96b97bb Compare August 4, 2026 13:16
@Rwwwrl
Rwwwrl requested a review from nmanovic as a code owner August 4, 2026 13:16
@Rwwwrl
Rwwwrl force-pushed the as/add-instance-type-webhook-notifications branch 7 times, most recently from 4bf7423 to 94a9e63 Compare August 11, 2026 09:08
@Rwwwrl
Rwwwrl requested a review from bsekachev as a code owner August 11, 2026 09:08
@Rwwwrl
Rwwwrl force-pushed the as/add-instance-type-webhook-notifications branch 12 times, most recently from 09b5dfc to 4cdf494 Compare August 13, 2026 11:15
@Rwwwrl
Rwwwrl force-pushed the as/add-instance-type-webhook-notifications branch from a2f74e4 to 4cfaf58 Compare August 16, 2026 09:15
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