Skip to content

Update database host fields from "secondary" to "standby"#855

Merged
zliang-akamai merged 4 commits intolinode:mainfrom
zliang-akamai:zhiwei/dbaas-hosts-update
Dec 8, 2025
Merged

Update database host fields from "secondary" to "standby"#855
zliang-akamai merged 4 commits intolinode:mainfrom
zliang-akamai:zhiwei/dbaas-hosts-update

Conversation

@zliang-akamai
Copy link
Member

📝 Description

Update database host fields from "secondary" to "standby" to reflect the DBaaS API change.

✔️ How to Test

make test-int
make test-unit

Copilot AI review requested due to automatic review settings November 25, 2025 19:26
@zliang-akamai zliang-akamai requested a review from a team as a code owner November 25, 2025 19:26
@zliang-akamai zliang-akamai requested review from ezilber-akamai and vshanthe and removed request for a team November 25, 2025 19:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates database host field naming from "secondary" to "standby" to align with a DBaaS API change. The changes ensure consistency between the Go SDK struct definition and the API response format.

  • Updated the DatabaseHost struct field from Secondary to Standby
  • Updated all test fixtures (JSON files) for both PostgreSQL and MySQL databases
  • Updated integration test assertions to use the new field name

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
databases.go Changed struct field from Secondary to Standby in DatabaseHost type
test/unit/fixtures/postgresql_databases_list.json Updated JSON key from "secondary" to "standby"
test/unit/fixtures/postgresql_database_update.json Updated JSON key from "secondary" to "standby"
test/unit/fixtures/postgresql_database_get.json Updated JSON key from "secondary" to "standby"
test/unit/fixtures/postgresql_database_create.json Updated JSON key from "secondary" to "standby"
test/unit/fixtures/mysql_databases_list.json Updated JSON key from "secondary" to "standby"
test/unit/fixtures/mysql_database_update.json Updated JSON key from "secondary" to "standby"
test/unit/fixtures/mysql_database_get.json Updated JSON key from "secondary" to "standby"
test/unit/fixtures/mysql_database_create.json Updated JSON key from "secondary" to "standby"
test/integration/postgres_db_config_test.go Updated assertion from db.Hosts.Secondary to db.Hosts.Standby
test/integration/monitor_services_token_creation_test.go Corrected fixture path reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member Author

@zliang-akamai zliang-akamai Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setupPostgresDatabase setup a 3 nodes DBaaS instance, so the standby host should not be empty

Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@vshanthe vshanthe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zliang-akamai zliang-akamai added the breaking-change for breaking changes in the changelog. label Dec 4, 2025
@zliang-akamai zliang-akamai force-pushed the zhiwei/dbaas-hosts-update branch from ac8a60c to 6452bcf Compare December 8, 2025 17:22
@zliang-akamai zliang-akamai merged commit 539ebb8 into linode:main Dec 8, 2025
10 checks passed
@zliang-akamai zliang-akamai deleted the zhiwei/dbaas-hosts-update branch December 8, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change for breaking changes in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants