wazo-provd: devices of deleted tenant are not deleted

Description

Given I have a tenant with devices
When I delete the tenant
Then the devices are not deleted

Expected: the devices should be deleted

This was supposed to be fixed by the linked ticket, but the tests made it seem like it worked when in fact it does not.

Technical details

wazo-provd tries to check the ACL of the token vis-à-vis the deleted tenant but the tenant does not exist anymore so wazo-auth returns 401, thus making it impossible to delete the devices.

Possible solutions

  • wazo-provd handles the events and delete the devices when a tenant is deleted

  • create a new route in wazo-provdso that wazo-confd can delete the devices without checking if the tenant exists. In this case, a special ACL should be granted to wazo-confd.

TODO

  • remove test skip:

Zendesk Ticket IDs

None

Activity

Show:

vicky.tremblay September 28, 2024 at 4:30 PM

VT - Clean-up

François Blackburn April 14, 2022 at 3:03 PM

Solution #1
Please do not do #2

Won't Do

Details

Priority

Assignee

Reporter

Zendesk Support

Created April 14, 2022 at 2:56 PM
Updated September 28, 2024 at 4:30 PM
Resolved September 28, 2024 at 4:30 PM