Modify some EBS and RDS actions to allow partial results#2220
Merged
ravikiranvm merged 7 commits intomainfrom Apr 16, 2026
Merged
Modify some EBS and RDS actions to allow partial results#2220ravikiranvm merged 7 commits intomainfrom
ravikiranvm merged 7 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds “allow partial results” support to selected AWS EBS and RDS describe helpers/actions so workflows can return successful regional results while reporting which regions failed.
Changes:
- Introduces a shared
PartialResult/FailedRegionmodel and error formatter (partial-result.ts) and reuses it in existing EC2 code. - Adds new
*AllowPartialhelpers for RDS (instances/snapshots) and EBS volumes that usePromise.allSettledto collect successes + failed regions. - Extends AWS block actions (RDS instances/snapshots, EBS volumes) with an
allowPartialResultscheckbox to switch output shape to{ results, failedRegions }.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/openops/src/lib/aws/partial-result.ts | New shared types/util for partial results and error formatting. |
| packages/openops/src/lib/aws/ec2/ec2-get-instances.ts | Refactors to import partial-result types/util from the new shared module. |
| packages/openops/src/lib/aws/rds/rds-describe.ts | Adds describeRds*AllowPartial APIs and refactors per-region fetch helpers. |
| packages/openops/src/lib/aws/ebs/get-ebs-volumes.ts | Adds getEbsVolumesAllowPartial using settled promises and shared metadata model. |
| packages/openops/src/index.ts | Re-exports the new partial-result module. |
| packages/blocks/aws/src/lib/actions/rds/rds-describe-snapshots-action.ts | Adds allowPartialResults option and returns partial shape when enabled. |
| packages/blocks/aws/src/lib/actions/rds/rds-describe-instances-action.ts | Adds allowPartialResults option and returns partial shape when enabled. |
| packages/blocks/aws/src/lib/actions/ebs/ebs-get-volumes-action.ts | Adds allowPartialResults option and returns partial shape when enabled. |
| packages/openops/test/aws/rds/rds-describe.test.ts | Adds unit tests for the new RDS allow-partial helpers. |
| packages/openops/test/aws/ebs/ebs-get-volumes.test.ts | Adds unit tests for the new EBS allow-partial helper. |
| packages/blocks/aws/test/rds/rds-describe-snapshots-action.test.ts | Updates action props expectations and adds allow-partial behavior tests. |
| packages/blocks/aws/test/rds/rds-describe-instances-action.test.ts | Updates action props expectations and adds allow-partial behavior tests. |
| packages/blocks/aws/test/ebs/ebs-get-volumes-action.test.ts | Updates action props expectations and adds allow-partial behavior tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MarceloRGonc
approved these changes
Apr 15, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Part of OPS-4065.
AWS Actions being modified in this PR:
I will open another PR for Compute Optimiser actions.
Additional Notes