-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
8
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
3scale 2019-11-11, 3scale 2019-11-25, 3scale 2019-12-09, 3scale 2019-12-23, 3scale 2020-01-13
Whitelist
Right now, we get `destroyable_associations` of an object by iterating through `reflect_on_all_associations`. Then we check if association has `dependent` option set. Either to `destroy` or `delete_all`. The main logic lives in: https://github.com/3scale/porta/blob/master/app/workers/delete_object_hierarchy_worker.rb
The new idea is to create a new option for an object/model that would says, if the object should be deleted on the background and by which method. Something like:
```
class MyNewModel < ActiveRecord::Base
self.background_delation = :destroy
```
- blocks
-
THREESCALE-2989 Enable the deletion of tenants
- Developing
- is related to
-
THREESCALE-2204 Fix efficiency/bugs to destroy tenants/services and enable the worker again
- Closed