mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #434] [MERGED] Fix migrate import: omit locale on PATCH + select draft AppInfo #525
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#525
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/434
Author: @cameronehrlich
Created: 2/7/2026
Status: ✅ Merged
Merged: 2/7/2026
Merged by: @rudrankriyam
Base:
main← Head:fix/migrate-import-draft-appinfo📝 Commits (1)
0e70a36Fix migrate import for draft app info📊 Changes
3 files changed (+98 additions, -2 deletions)
View changed files
📝
internal/asc/client.go(+6 -0)📝
internal/asc/client_http_test.go(+44 -0)📝
internal/cli/migrate/migrate.go(+48 -2)📄 Description
This fixes two issues that break
asc migrate importfor apps with multiple localizations.localeon PATCH updateslocale:The attribute 'locale' can not be included in a 'UPDATE' requestUpdateAppStoreVersionLocalizationandUpdateAppInfoLocalizationnow clearattributes.Localebefore building the PATCH payload."locale"is not present in the JSON body for these PATCH requests.AppInforecords (commonly a live one inREADY_FOR_DISTRIBUTIONand a draft one inPREPARE_FOR_SUBMISSION).AppInfoLocalization.name/subtitleagainst the live AppInfo fails with:The field 'name' can not be modified in the current state.migrate importandmigrate exportnow select theAppInfoinPREPARE_FOR_SUBMISSIONwhen present, otherwise fall back sensibly.Validation
go test ./...migrate importrun against a real app that has both live + draft AppInfo records; confirmed the CLI targets thePREPARE_FOR_SUBMISSIONAppInfo and completes without API errors.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.