mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[GH-ISSUE #517] Submit cancel: --id path uses deprecated endpoint and fails to cancel review submissions #141
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#141
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?
Originally created by @rudrankriyam on GitHub (Feb 14, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/517
Summary
asc submit cancel --id <review_submission_id> --confirmcurrently routes through the legacyappStoreVersionSubmissionsdelete path instead of thereviewSubmissionscancel path.Why this matters
Users who provide a valid review submission ID can get a misleading "not found" failure, even though the submission exists and is cancelable via the modern endpoint.
Current behavior
In
internal/cli/submit/submit.go, the--idbranch setsresolvedSubmissionIDand immediately calls:DeleteAppStoreVersionSubmission(...)The
CancelReviewSubmission(...)branch is only reached whenresolvedSubmissionID == "", which does not happen for--idinput.Reproduction
asc submit create ... --confirmand capture the returned submission ID.Expected behavior
--idshould targetreviewSubmissionscancel semantics.--version-idmay continue using legacy lookup for old flows, but once a review submission ID is known, cancellation should useCancelReviewSubmission.Detailed implementation plan
SubmitCancelCommandflow ininternal/cli/submit/submit.go.--idtoclient.CancelReviewSubmission.--version-idresolution behavior, but cancel through review submission when available.internal/cli/submit/submit_test.goand cmdtests for both selector modes.Acceptance criteria
asc submit cancel --id <review_submission_id> --confirmsuccessfully cancels review submissions.--version-idflow remains functional and returns clear errors when no submission exists.cc @cursor please implement this end-to-end.
@rudrankriyam commented on GitHub (Feb 14, 2026):
@cursor please implement this issue end-to-end using the checklist and acceptance criteria.
@cursor[bot] commented on GitHub (Feb 14, 2026):
Implemented end-to-end on
cursor/submit-cancel-id-endpoint-2b2aand pushed as commit1dd67bc.submit cancelrouting so explicit--idnow usesCancelReviewSubmission(modernreviewSubmissionssemantics), and no longer attempts legacy delete first.--version-idlegacy lookup behavior, but now it tries review cancellation first when an ID is resolved, then falls back to legacy delete for old submission flows.no review submission found for ID ...(for--id)no legacy submission found for version .../...for ID ...(legacy path)Testing and evidence:
internal/cli/submit/submit_test.go(new routing + error-path coverage)internal/cli/cmdtest/submit_cancel_test.go(root-command selector-mode behavior + output parsing)go test ./internal/cli/submit -run TestSubmitCancelCommand_ -count=1go test ./internal/cli/cmdtest -run SubmitCancel -count=1PATH="$PATH:/home/ubuntu/go/bin" make lintmake testgo build -o /tmp/asc . && /tmp/asc submit cancel --id "review-submission-123"(validated usage exit path;exit_code:2when--confirmis missing)/opt/cursor/artifacts/submit_cancel_selector_modes_tests_passing.mp4(shows selector-mode tests passing).@rudrankriyam commented on GitHub (Feb 14, 2026):
Fixed in #535 (merged to main).