Skip to content

feat: add digitalocean create and delete database components#3747

Merged
forestileao merged 7 commits intosuperplanehq:mainfrom
WashingtonKK:feat/digitalocean-databases
Apr 16, 2026
Merged

feat: add digitalocean create and delete database components#3747
forestileao merged 7 commits intosuperplanehq:mainfrom
WashingtonKK:feat/digitalocean-databases

Conversation

@WashingtonKK
Copy link
Copy Markdown
Collaborator

@WashingtonKK WashingtonKK commented Mar 27, 2026

Implements #3736

This expands the digital ocean integration by adding two components:

  • digitalocean.CreateDatabase
  • digitalocean.DeleteDatabase

Note

Medium Risk
Introduces new DigitalOcean actions that create and permanently delete databases within managed clusters, plus new API client calls and resource listing used by configuration pickers. Risk is moderate due to destructive operations and reliance on correct cluster/database resolution and API error handling.

Overview
Adds two new DigitalOcean workflow components: digitalocean.createDatabase (POST cluster DB) and digitalocean.deleteDatabase (DELETE cluster DB), emitting digitalocean.database.created/digitalocean.database.deleted events and treating 404 deletes as success.

Extends the DigitalOcean API client and resource picker support to list database clusters and per-cluster databases, with shared metadata resolution (DatabaseNodeMetadata) to display cluster/database names.

Updates docs, skill templates, embedded example outputs, and workflow UI mappers/types to surface the new actions and render execution details/metadata.

Reviewed by Cursor Bugbot for commit 54564be. 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)

- Implement CreateDatabase component for provisioning new managed databases in DigitalOcean.
- Implement DeleteDatabase component for removing existing managed databases.
- Add tests for both components to ensure proper functionality and error handling.
- Introduce metadata handling for database clusters and databases.
- Update resource listing to include database clusters and databases.
- Enhance UI mappers for create and delete database actions.
- Add example output JSON files for both create and delete database actions.
- Update documentation for new components and their expected inputs/outputs.

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
@WashingtonKK WashingtonKK force-pushed the feat/digitalocean-databases branch from 9cd6f2d to 54564be Compare April 9, 2026 16:39
@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.

@WashingtonKK Here we just need frontedn tests for the mappers

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
…abases

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>

# Conflicts:
#	docs/components/DigitalOcean.mdx
#	pkg/integrations/digitalocean/client.go
#	pkg/integrations/digitalocean/database_metadata.go
#	pkg/integrations/digitalocean/digitalocean.go
#	pkg/integrations/digitalocean/example.go
#	pkg/integrations/digitalocean/list_resources.go
#	pkg/integrations/digitalocean/list_resources_test.go
#	web_src/src/pages/workflowv2/mappers/digitalocean/database.spec.ts
#	web_src/src/pages/workflowv2/mappers/digitalocean/index.ts
#	web_src/src/pages/workflowv2/mappers/digitalocean/types.ts
Comment thread pkg/integrations/digitalocean/client.go Outdated
…ated references

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 2 potential issues.

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 c2e3baf. Configure here.

Comment thread web_src/src/pages/workflowv2/mappers/digitalocean/create_database.ts Outdated
Comment thread web_src/src/pages/workflowv2/mappers/digitalocean/database.spec.ts Outdated
…on in DigitalOcean database mappers

- Removed unused imports and the baseEventSections function from create_database.ts and delete_database.ts.
- Updated componentName in database.spec.ts to reflect the new naming convention for DigitalOcean database components.

Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
@forestileao forestileao merged commit f12bfd7 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