Skip to content

Conversation

@dgandhi62
Copy link
Contributor

The refreshStacks function currently takes 4 individual parameters, making it difficult to maintain as new parameters are added.

This change:

  • Introduces a RefreshStacksProps interface to group function parameters
  • Refactors the refreshStacks function signature to accept a single props object

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Replace 4 individual parameters with a single props object to make readability better
@aws-cdk-automation aws-cdk-automation requested a review from a team September 18, 2025 21:22
@dgandhi62 dgandhi62 changed the title refactor(gc): property bag for refreshStacks function refactor(cli): property bag for refreshStacks function Sep 18, 2025
@github-actions github-actions bot added the p2 label Sep 18, 2025
@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.41%. Comparing base (e0ef8d0) to head (1b3fe89).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #855      +/-   ##
==========================================
- Coverage   83.79%   83.41%   -0.38%     
==========================================
  Files          65       65              
  Lines        9558     9558              
  Branches     1137     1133       -4     
==========================================
- Hits         8009     7973      -36     
- Misses       1527     1561      +34     
- Partials       22       24       +2     
Flag Coverage Δ
suite.unit 83.41% <ø> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Sep 19, 2025
Merged via the queue into aws:main with commit 2d8d734 Sep 19, 2025
28 checks passed
@dgandhi62 dgandhi62 self-assigned this Sep 23, 2025
iankhou pushed a commit that referenced this pull request Oct 7, 2025
The refreshStacks function currently takes 4 individual parameters,
making it difficult to maintain as new parameters are added.

This change:
- Introduces a `RefreshStacksProps` interface to group function
parameters
- Refactors the `refreshStacks` function signature to accept a single
props object

---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license

Co-authored-by: Dhyan Gandhi <[email protected]>
Co-authored-by: Kaizen Conroy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants