Skip to content

feat: add digitalocean Create and Get Database Cluster components#3748

Merged
forestileao merged 9 commits intosuperplanehq:mainfrom
WashingtonKK:feat/digitalocean-database-clusters
Apr 16, 2026
Merged

feat: add digitalocean Create and Get Database Cluster components#3748
forestileao merged 9 commits intosuperplanehq:mainfrom
WashingtonKK:feat/digitalocean-database-clusters

Conversation

@WashingtonKK
Copy link
Copy Markdown
Collaborator

@WashingtonKK WashingtonKK commented Mar 27, 2026

Implements #3736

This expands the DigitalOcean integration by adding the following components:

  • digitalocean.CreateDatabaseCluster
  • digitalocean.GetDatabaseCluster

Note

Medium Risk
Adds new DigitalOcean API calls and workflow components that provision managed database clusters and poll for readiness, which can impact user workflows if API responses/options handling differ from expectations.

Overview
Adds two new DigitalOcean workflow actions: digitalocean.createDatabaseCluster (provisions a managed DB cluster and polls until online) and digitalocean.getDatabaseCluster (fetches cluster details).

Extends the DigitalOcean client and resource listing to support managed database clusters plus option-driven UI resources (cluster list, engine versions, and size-by-node-count), and wires these into docs, templates, example outputs, and the workflow UI mappers/state registries.

Reviewed by Cursor Bugbot for commit db0d60b. Bugbot is set up for automated code reviews on this repo. Configure here.

@superplanehq-integration
Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

Comment thread pkg/integrations/digitalocean/create_database_cluster.go Outdated
Comment thread web_src/src/pages/workflowv2/mappers/digitalocean/types.ts
- Implement CreateDatabaseCluster component with setup and execution logic.
- Implement GetDatabaseCluster component to retrieve details of existing clusters.
- Add tests for both components to ensure correct functionality.
- Introduce metadata handling for database clusters.
- Update resource listing to include database clusters, versions, and sizes.
- Create example output JSON files for both Create and Get Database Cluster actions.
- Add corresponding mappers for UI integration in workflow.
- Enhance documentation for new components and their expected inputs/outputs.

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
…figuration in database cluster mappers

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
@WashingtonKK WashingtonKK force-pushed the feat/digitalocean-database-clusters branch from 76afdb0 to 30ff49c Compare April 9, 2026 16:46
Comment thread pkg/integrations/digitalocean/example_output_create_database_cluster.json Outdated
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Comment thread web_src/src/pages/workflowv2/mappers/digitalocean/create_database_cluster.ts Outdated
…cluster mappers

Updated the Node Count assignment in both Create and Get Database Cluster mappers to use nullish coalescing (??) instead of logical OR (||) for better handling of undefined values.

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
@AleksandarCole AleksandarCole added the pr:stage-3/3 Ready for full, in-depth, review label Apr 14, 2026
Copy link
Copy Markdown
Collaborator

@forestileao forestileao left a comment

Choose a reason for hiding this comment

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

Just missing frontend tests too

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8eb8b47. Configure here.

Comment thread pkg/integrations/digitalocean/database_cluster_metadata.go
@forestileao forestileao merged commit 28acaaa into superplanehq:main Apr 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:stage-3/3 Ready for full, in-depth, review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants