1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-04 21:25:24 +00:00

Add before_group_deleted signal

This commit is contained in:
Petr Stribny 2022-06-23 14:36:59 +02:00
parent 6c6e7e978a
commit 491acfdb41
4 changed files with 9 additions and 0 deletions
backend/src/baserow/core
changelog.md
docs/apis

View file

@ -54,6 +54,7 @@ from .signals import (
application_updated,
application_deleted,
applications_reordered,
before_group_deleted,
group_created,
group_updated,
group_deleted,
@ -274,6 +275,10 @@ class CoreHandler:
group_id = group.id
group_users = list(group.users.all())
before_group_deleted.send(
self, group_id=group_id, group=group, group_users=group_users, user=user
)
TrashHandler.trash(user, group, None, group)
group_deleted.send(

View file

@ -1,6 +1,8 @@
from django.dispatch import Signal
before_group_deleted = Signal()
group_created = Signal()
group_updated = Signal()
group_deleted = Signal()

View file

@ -16,6 +16,7 @@ For example:
[#1023](https://gitlab.com/bramw/baserow/-/issues/1023)
* Added possibility to delete own user account [#880](https://gitlab.com/bramw/baserow/-/issues/880)
* Added new `group_user_added` signal that is called when an user accept an invitation to join a group.
* Added new `before_group_deleted` signal that is called just before a group would end up in the trash.
### Bug Fixes

View file

@ -122,6 +122,7 @@ are subscribed to the page.
* `authentication`
* `page_add`
* `page_discard`
* `before_group_deleted`
* `group_created`
* `group_updated`
* `group_deleted`