# What this PR does It introduces soft-delete of organization, since grafana stacks are soft-deleted too. Also, we had a problem with deleting orgs with large amounts of alerts, so soft-deletion will fix this problem. I think, that problem of cleaning alerts of deleted orgs should be solved as a part of alert retention
11 lines
315 B
Python
11 lines
315 B
Python
from .models import Organization
|
|
|
|
|
|
class OrganizationDeletedException(Exception):
|
|
def __init__(self, organization: Organization):
|
|
self.organization = organization
|
|
|
|
|
|
class OrganizationMovedException(Exception):
|
|
def __init__(self, organization: Organization):
|
|
self.organization = organization
|