mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #502] [MERGED] Add --paginate support to subscription price-points equalizations #576
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#576
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/rudrankriyam/App-Store-Connect-CLI/pull/502
Author: @humblemuzzu
Created: 2/11/2026
Status: ✅ Merged
Merged: 2/11/2026
Merged by: @rudrankriyam
Base:
main← Head:fix/equalizations-pagination📝 Commits (3)
523ace7Add --paginate support to subscription price-points equalizations2df0577Optimize paginated subscription price-point equalizations.f339a8fExpand subscription equalizations pagination tests.📊 Changes
4 files changed (+212 additions, -3 deletions)
View changed files
📝
internal/asc/client_subscription_resources.go(+15 -1)📝
internal/asc/subscriptions_resources_http_test.go(+44 -0)📝
internal/cli/cmdtest/subscriptions_price_points_test.go(+129 -0)📝
internal/cli/subscriptions/price_points.go(+24 -2)📄 Description
Problem
The
subscriptions price-points equalizationscommand only returns the first page (50 items) from Apple's API. Since every subscription has 175 territories, the remaining 124+ equalized price points are silently truncated with no way to retrieve them.This makes it impossible to programmatically set equalized prices for all territories — you can only reach the first 50.
Fix
Added
--paginateflag to the equalizations subcommand, using the samePaginateAllpattern already used by theprice-points listcommand.Changes
internal/asc/client_subscription_resources.goGetSubscriptionPricePointEqualizationsnow accepts...SubscriptionPricePointsOptionso callers can pass anextURLfor pagination (same pattern asGetSubscriptionPricePoints)internal/cli/subscriptions/price_points.go--paginateflag to the equalizations subcommandasc.PaginateAll()to aggregate all pages before outputBefore / After
Without
--paginate, behavior is unchanged (backward compatible).All existing tests pass.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.