Flagsmith / Flagsmith/flagsmith

Prevent deletion of an organisation that has an active Chargebee subscription

Open
#7,700 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

Since we added (mandatory) cancellation reasons in chargebee, deleting an organisation with an active CB subscription fails with the following error.

The desired solution (as discussed [here](https://flagsmith.slack.com/archives/C05GSDTULDB/p1780489630611909)) is to prevent users from deleting their organisation if it has an active subscription. The 'Delete Organisation' button should be disabled in the UI, and it should be clear to the user that they first need to cancel their subscription in order to delete their organisation.

Related sentry Issue: [FLAGSMITH-API-5QM](https://flagsmith.sentry.io/issues/7524030089/?referrer=github_integration)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.