Problem description:
- given:
- I create a collection
- I add a number report to that collection
- I create an alert for that collection
- when:
- I delete the collection
- then:
- the collection and the report hast been deleted, but the alert has not been removed from Elasticsearch
- expected:
- the deletion of the collection removes the collection itself and all its containing entities including the alerts
AT:
- the bug is being fixed
- the upgrade script removes all alerts that have a reference to a non-existing report