Reset instance/group level integration
Problem
Currently, there is no way to deactivate an integration that is setup at the parent level. If an admin wants to stop using an instance, group, or subgroup level configuration for an integration, the admin is not able to remove the integration.
- Design: #273778 (closed)
- Frontend: !47188 (merged)
Backend solution
-
Remove instance/group level records and clear/deactivate attributes at the project level.
-
Alternative implementation: Remove all the records. If we delete a service it should delete any related association that it's no longer valid, we should test this case but we could also do something like this:
has_one :service_hook, dependent: :destroy
Deletion or deactivation of the inheriting services should be done in a background worker.