mirror of
https://github.com/awslabs/iam-policy-autopilot.git
synced 2026-04-26 00:15:57 +03:00
[PR #149] [MERGED] refactor: replace duplicated paginator methods with shared PaginatorCallPattern #261
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#261
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/149
Author: @adpaco-aws
Created: 2/11/2026
Status: ✅ Merged
Merged: 2/13/2026
Merged by: @adpaco-aws
Base:
main← Head:refactor-paginator-call-pattern📝 Commits (2)
5f53fffrefactor: replace duplicated paginator methods with sharedPaginatorCallPatternbe96b03Pass language instead of method tocreate_synthetic_calls📊 Changes
5 files changed (+179 additions, -226 deletions)
View changed files
📝
iam-policy-autopilot-policy-generation/src/extraction/go/paginator_extractor.rs(+9 -78)📝
iam-policy-autopilot-policy-generation/src/extraction/go/waiter_extractor.rs(+3 -3)📝
iam-policy-autopilot-policy-generation/src/extraction/python/paginator_extractor.rs(+17 -125)📝
iam-policy-autopilot-policy-generation/src/extraction/python/waiters_extractor.rs(+3 -13)📝
iam-policy-autopilot-policy-generation/src/extraction/shared/extraction_utils.rs(+147 -7)📄 Description
Issue #, if available: Follow-up to #139
Description of changes:
Replace the duplicated synthetic call creation methods in Python and Go paginator extractors with a shared
PaginatorCallPatternenum inextraction_utils.rs. This follows the same pattern established in PR #139 for waiter extraction.This eliminates 5 methods related to synthetic call creation (~170 lines of duplicated code) and makes the paginator extraction logic consistent with the waiter extraction approach.
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.