mirror of
https://github.com/awslabs/iam-policy-autopilot.git
synced 2026-04-26 00:15:57 +03:00
[PR #139] [MERGED] refactor: replace duplicated CallInfo with shared WaiterCallPattern #257
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/iam-policy-autopilot#257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/awslabs/iam-policy-autopilot/pull/139
Author: @adpaco-aws
Created: 2/4/2026
Status: ✅ Merged
Merged: 2/6/2026
Merged by: @adpaco-aws
Base:
main← Head:refactor-call-info📝 Commits (5)
da40af8refactor: replace duplicatedCallInfowith sharedWaiterCallPatternfa8d41brefactor: move synthetic call creation toWaiterCallPattern9f5fff3Merge branch 'main' into refactor-call-info4cd52b3fix: fix clippy warnings133693cMerge branch 'main' into refactor-call-info📊 Changes
3 files changed (+228 additions, -231 deletions)
View changed files
📝
iam-policy-autopilot-policy-generation/src/extraction/go/waiter_extractor.rs(+23 -95)📝
iam-policy-autopilot-policy-generation/src/extraction/python/waiters_extractor.rs(+54 -136)📝
iam-policy-autopilot-policy-generation/src/extraction/shared/extraction_utils.rs(+151 -0)📄 Description
Issue #, if available: Closes #88
*Description of changes:*Replace the duplicated
CallInfoenum in Python and Go waiter extractorswith a shared
WaiterCallPatternenum inextraction_utils.rs. This seemed like the best option to me considering that the alternative was to eitherIn fact, we're currently doing (1) for paginator extraction leading to a significant amount of code duplication. If we agree on keeping an enum to drive this logic, I can follow up with a refactor to use
WaiterCallPattern(with a better name) on the paginator extraction code.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.