Done
Details
Priority
HighestAssignee
Nabil Ben YoussefNabil Ben YoussefReporter
Nabil Ben YoussefNabil Ben YoussefApprovers
Pascal CadotteFix versions
Sprint
NoneLabels
Details
Details
Priority
Assignee
Nabil Ben Youssef
Nabil Ben YoussefReporter
Nabil Ben Youssef
Nabil Ben YoussefApprovers
Pascal Cadotte
Fix versions
Sprint
None
Labels
Zendesk Support
Zendesk Support
Zendesk Support
Created June 20, 2023 at 6:08 PM
Updated September 26, 2024 at 6:24 PM
Resolved August 2, 2023 at 8:09 PM
9 resources to delete when a tenant is deleted:
Users
Allowed peripherials
Ring groups
Voicemail
Incoming routes
Outgoing routes
Trunks
Conference rooms
Contexts (Settings > Dialplan > Contextes)
Write the code deleting the 9 resources (managed by wazo-confd). The delete can be completed by calling the DAOs delete(…). We may not need to call all the DAOs as there are some foreign keys with a delete on cascade. Code must be written in sync_db.py
Improve the bus consumer (wazo_confd/plugins/event_handlers/) for the tenant_deleted event by calling the code deleting the resources (see above)
Improve sync_db.py by calling the code deleting the resources in the “main”
NOTE: the steps above will create a new technical debt for us (the developers) https://wazo-dev.atlassian.net/browse/WAZO-3290 . When we will put in place foreign keys in all the resources tables, we will need to rework on this deletion process
DISCLAIMER:
voicemails and devices deletions will be done in other tasks (check the epic for more details about these tasks)