mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #435] [MERGED] Fix migrate import: omit locale on PATCH + choose PREPARE_FOR_SUBMISSION appInfo #526
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#526
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/435
Author: @cameronehrlich
Created: 2/7/2026
Status: ✅ Merged
Merged: 2/7/2026
Merged by: @rudrankriyam
Base:
main← Head:codex/migrate-import-fixes📝 Commits (2)
ec00f6ffix(migrate): omit locale on updates; prefer editable appInfobcea0b7Merge main into codex/migrate-import-fixes📊 Changes
4 files changed (+119 additions, -34 deletions)
View changed files
📝
internal/asc/client.go(+2 -4)📝
internal/asc/client_http_test.go(+25 -13)📝
internal/cli/migrate/migrate.go(+41 -17)📝
internal/cli/migrate/migrate_test.go(+51 -0)📄 Description
Problem
asc migrate importincludeslocalein PATCH payloads forappStoreVersionLocalizationsandappInfoLocalizations. App Store Connect rejects this with:The attribute 'locale' can not be included in a 'UPDATE' request.appInfos(for example one inREADY_FOR_SALEand one inPREPARE_FOR_SUBMISSION). The current import logic uses the first appInfo, which can select theREADY_FOR_SALErecord and fail updates like:name can not be modified in the current stateChanges
Omit
localefrom PATCH update requests in:Client.UpdateAppStoreVersionLocalizationClient.UpdateAppInfoLocalizationUpdate
migrate importappInfo selection:stateorappStoreStateisPREPARE_FOR_SUBMISSIONappStoreStatethat is notREADY_FOR_SALEVerification
localeis omitted from PATCH payloads.go test ./...andmake buildpass.asc migrate importsucceeds for a real app with twoappInfos(oneREADY_FOR_SALE, onePREPARE_FOR_SUBMISSION).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.