You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Previously
Project deletion was very problematic - even though projects contain
many resources, they could be deleted while their children objects still
exist. This would effectively "orphan" those resources, making them
inaccessible.
For example: Create an instance in a project, delete the project. Now
the instance exists, but cannot be deleted.
## This PR
Adds `rcgen` to projects, and ensures that they can no longer be deleted
while containing child resources.
- Implements `DatastoreCollectionConfig<ChildResource>` for `Project`,
for many child resources
- Uses `Project::insert_resource` to bump `rcgen` while creating child
resources
- Checks for child resources existing during project deletion
- Adds tests
Fixes#1482
0 commit comments