Skip to content

testserver: materialize postgres project status defaults#5430

Merged
pietern merged 1 commit into
mainfrom
acc-purge-on-delete
Jun 4, 2026
Merged

testserver: materialize postgres project status defaults#5430
pietern merged 1 commit into
mainfrom
acc-purge-on-delete

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented Jun 4, 2026

A cloud run of the postgres_projects/purge_on_delete acceptance test (added in #5414) showed that the backend materializes default_endpoint_settings (1/1/86400s) and history_retention_duration (604800s) in the project status even when the spec omits them. The local testserver left these empty, diverging from cloud.

PostgresProjectCreate now fills in these backend defaults when the spec doesn't provide them, with any spec-provided values overriding field-by-field. This brings the local test in line with the cloud golden output.

This pull request and its description were written by Isaac.

A cloud run of the postgres_projects/purge_on_delete acceptance test
(added in #5414) showed that the backend materializes
default_endpoint_settings (1/1/86400s) and history_retention_duration
(604800s) in the project status even when the spec omits them. The local
testserver left these empty, diverging from cloud.

PostgresProjectCreate now fills in these backend defaults when the spec
doesn't provide them, with any spec-provided values overriding
field-by-field.

Co-authored-by: Isaac
@pietern pietern temporarily deployed to test-trigger-is June 4, 2026 08:59 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is June 4, 2026 08:59 — with GitHub Actions Inactive
@pietern pietern requested a review from denik June 4, 2026 09:02
@eng-dev-ecosystem-bot
Copy link
Copy Markdown
Collaborator

Commit: ff9138f

Run: 26941820203

@pietern pietern enabled auto-merge June 4, 2026 10:06
@pietern pietern added this pull request to the merge queue Jun 4, 2026
Merged via the queue into main with commit 0cbdd49 Jun 4, 2026
25 checks passed
@pietern pietern deleted the acc-purge-on-delete branch June 4, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants