Support backups for compose-managed application databases#9359
Closed
boofpackdev wants to merge 1 commit intocoollabsio:nextfrom
Closed
Support backups for compose-managed application databases#9359boofpackdev wants to merge 1 commit intocoollabsio:nextfrom
boofpackdev wants to merge 1 commit intocoollabsio:nextfrom
Conversation
Contributor
|
This PR did not pass quality checks so it will be closed. If you believe this is a mistake please let us know. |
Author
|
hey sorry my hermes agent went rogue on the quest to bring me 10 bucks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
STRAWBERRY
Changes
Compose-managed database services (e.g., postgres, mysql, mariadb, mongodb) declared inside an Application's
docker-compose.ymlnow support scheduled backups.application_idnullable FK toservice_databasestable, madeservice_idnullable, added composite index on(application_id, name).ServiceDatabasenow has anapplication()relation andApplicationhas adatabases()relation. Added parent-resolution helpers (parentServer,parentDestination,parentNetworkName,currentContainerName,backupDirectoryName, etc.) so backup and proxy code works whether the DB belongs to a Service or Application.applicationParserfunctions now detect database images in compose YAML and upsert aServiceDatabaserow withapplication_idset andservice_idnull.DatabaseBackupJobresolves server, container, and network from the parent helpers instead of assuming service-based paths. Status check bypassed for application-backed DBs since their container status is sourced from application container scanning.StartDatabaseProxy/StopDatabaseProxyhandle application-backed compose DBs via the parent-resolution helpers.ComposeDatabaseBackupsLivewire component at routeproject.application.compose-database.backups. Application general page shows a "Manage Backups" button for compose-managed DBs that support backups.ApplicationComposeDatabaseBackupParsingTestcovers DB persistence on compose parse and server resolution for scheduled backups.Issues
Category
Preview
Coming soon.
AI Assistance
If AI was used:
Testing
--pretendon the dev databasegit diff --checkContributor Agreement