Skip to content

feat: template apply/revert controller for composable Postgres features - #1050

Merged
paulocsanz merged 1 commit into
masterfrom
pcs/pg-mgmt-04-template-apply
Aug 7, 2026
Merged

feat: template apply/revert controller for composable Postgres features#1050
paulocsanz merged 1 commit into
masterfrom
pcs/pg-mgmt-04-template-apply

Conversation

@paulocsanz

Copy link
Copy Markdown
Collaborator

Part 4/8 of the railway postgres pitr/ha/pgbouncer stack (split out of #1032 for reviewability — see that PR for the full context, live-prod e2e evidence, and the test-postgres-cli harness). Each PR is based on the previous one and is independently green (cargo test/clippy/fmt).

Ports the dashboard's useApplyComposableTemplate flow: fetch a template's
serializedConfig, adjust replica/coordinator/edge counts and edge-variable
overrides INSIDE that JSON (raw serde_json so untouched fields round-trip),
deploy via templateDeployV2 onto an existing root with stageOnly, then
commit the staged patch (honoring --no-deploy via skipDeploys). Conversions
take a best-effort pre-conversion safety backup through the public
volumeInstanceBackupCreate. Warns when the environment already has staged
changes, since committing applies the WHOLE staged patch.

Part 4/8 of the railway postgres pitr/ha/pgbouncer stack.

@paulocsanz paulocsanz added the release/skip Author no release label Aug 7, 2026
@paulocsanz
paulocsanz force-pushed the pcs/pg-mgmt-03-cluster-model branch from 868362a to 3e5f71b Compare August 7, 2026 21:01
@paulocsanz
paulocsanz force-pushed the pcs/pg-mgmt-04-template-apply branch from 6fe5000 to ec5862d Compare August 7, 2026 21:01
Base automatically changed from pcs/pg-mgmt-03-cluster-model to master August 7, 2026 21:06
Ports the dashboard's useApplyComposableTemplate flow: fetch a template's
serializedConfig, adjust replica/coordinator/edge counts and edge-variable
overrides INSIDE that JSON (raw serde_json so untouched fields round-trip),
deploy via templateDeployV2 onto an existing root with stageOnly, then
commit the staged patch (honoring --no-deploy via skipDeploys). Conversions
take a best-effort pre-conversion safety backup through the public
volumeInstanceBackupCreate. Warns when the environment already has staged
changes, since committing applies the WHOLE staged patch.

Part 4/8 of the railway postgres pitr/ha/pgbouncer stack.
@paulocsanz
paulocsanz force-pushed the pcs/pg-mgmt-04-template-apply branch from ec5862d to f395d56 Compare August 7, 2026 21:08
@paulocsanz
paulocsanz merged commit 5e282af into master Aug 7, 2026
9 checks passed
@paulocsanz
paulocsanz deleted the pcs/pg-mgmt-04-template-apply branch August 7, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/skip Author no release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant