Skip to content

Drop support for ScaleGrid Databases#894

Open
ezilber-akamai wants to merge 2 commits intolinode:mainfrom
ezilber-akamai:TPT-3944-drop-scalegrid-db-support
Open

Drop support for ScaleGrid Databases#894
ezilber-akamai wants to merge 2 commits intolinode:mainfrom
ezilber-akamai:TPT-3944-drop-scalegrid-db-support

Conversation

@ezilber-akamai
Copy link
Contributor

📝 Description

Removed deprecated structs and methods previously used for ScaleGrid Database support.

✔️ How to Test

make test-unit
make test-int

@ezilber-akamai ezilber-akamai requested a review from a team as a code owner February 12, 2026 19:05
@ezilber-akamai ezilber-akamai requested review from Copilot, yec-akamai and zliang-akamai and removed request for a team February 12, 2026 19:05
@ezilber-akamai ezilber-akamai added the improvement for improvements in existing functionality in the changelog. label Feb 12, 2026
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 removes deprecated ScaleGrid Database support by cleaning up structs, methods, and properties that are no longer supported in DBaaS V2. The changes focus on eliminating backup-related functionality (which is now handled via database forking) and removing deprecated configuration properties.

Changes:

  • Removed deprecated backup methods for MySQL and PostgreSQL databases
  • Removed deprecated struct properties related to replication, SSL, and encryption settings
  • Removed deprecated backup-related struct definitions and paged response types

Reviewed changes

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

Show a summary per file
File Description
waitfor.go Removed deprecated backup polling methods for MySQL and PostgreSQL
postgres.go Removed backup-related structs, methods, and deprecated properties from PostgreSQL database types
paged_response_structs.go Removed deprecated backup paged response type definitions
mysql.go Removed backup-related structs, methods, and deprecated properties from MySQL database types
databases.go Removed deprecated properties from common database structs

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

Comment on lines 38 to 39
AllowList []string `json:"allow_list"`
InstanceURI string `json:"instance_uri"`
Created *time.Time `json:"-"`
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The InstanceURI field was removed from the struct but is still present in the Database struct in databases.go (line 88). This creates inconsistency between the generic Database type and the MySQL-specific type, potentially causing issues if code relies on this field being present in MySQLDatabase.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is only meant to exist in the generic Managed Database endpoints. I think it never should have been included in the MySQL struct.

// Deprecated: Encrypted is a deprecated property, as it is no longer supported in DBaaS V2.
Encrypted bool `json:"encrypted"`

SSLConnection bool `json:"ssl_connection"`
Copy link
Contributor

Choose a reason for hiding this comment

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

So SSLConnection and Encrypted were deprecated properties and now they aren't? Only ReplicationType is gone?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those properties were initially marked as deprecated because they were mistakenly omitted from the API Spec during the migration from DBaaS V1 to V2, but this was a mistake. The API is still returning these fields now.

// Members has dynamic keys so it is a map
Members map[string]DatabaseMemberType `json:"members"`

// Deprecated: ReplicationType is a deprecated property, as it is no longer supported in DBaaS V2.
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@yec-akamai yec-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. Tests passed locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement for improvements in existing functionality in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants