[GH-ISSUE #413] Parity: Analytics report request delete endpoint #119

Closed
opened 2026-02-26 21:33:33 +03:00 by kerem · 3 comments
Owner

Originally created by @rudrankriyam on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/413

Overview

Add the ability to delete analytics report requests.

Scope (OpenAPI resources)

  • DELETE /v1/analyticsReportRequests/{id}

Proposed CLI

  • asc analytics requests delete --request-id "REQUEST_ID" --confirm

Examples:

  • asc analytics requests delete --request-id "REQUEST_ID" --confirm

Flag patterns

Common: --request-id, --output, --pretty, --confirm

Output

  • JSON minified by default
  • --pretty for JSON

Detailed TODO

  • Add client method DeleteAnalyticsReportRequest in internal/asc/analytics.go
  • Add analytics requests delete subcommand
  • Add HTTP client tests (mocked)
  • Add CLI cmdtests for flag validation

Acceptance criteria

  • Analytics report requests can be deleted by ID
  • --confirm flag required for destructive operation

Tests

  • Flag validation tests
  • HTTP client test for DELETE endpoint

Implementation notes

  • Follow existing patterns in internal/asc/analytics.go
  • Add to existing analytics requests command group

References

  • docs/openapi/paths.txt
  • docs/openapi/latest.json
  • internal/asc/analytics.go
Originally created by @rudrankriyam on GitHub (Feb 2, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/413 # Overview Add the ability to delete analytics report requests. # Scope (OpenAPI resources) - `DELETE /v1/analyticsReportRequests/{id}` # Proposed CLI - `asc analytics requests delete --request-id "REQUEST_ID" --confirm` Examples: - `asc analytics requests delete --request-id "REQUEST_ID" --confirm` # Flag patterns Common: `--request-id`, `--output`, `--pretty`, `--confirm` # Output - JSON minified by default - `--pretty` for JSON # Detailed TODO - [ ] Add client method `DeleteAnalyticsReportRequest` in `internal/asc/analytics.go` - [ ] Add `analytics requests delete` subcommand - [ ] Add HTTP client tests (mocked) - [ ] Add CLI cmdtests for flag validation # Acceptance criteria - [ ] Analytics report requests can be deleted by ID - [ ] `--confirm` flag required for destructive operation # Tests - Flag validation tests - HTTP client test for DELETE endpoint # Implementation notes - Follow existing patterns in `internal/asc/analytics.go` - Add to existing `analytics requests` command group # References - `docs/openapi/paths.txt` - `docs/openapi/latest.json` - `internal/asc/analytics.go`
kerem closed this issue 2026-02-26 21:33:33 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Feb 2, 2026):

@cursor please implement this issue. Add the DeleteAnalyticsReportRequest client method and the CLI command.

<!-- gh-comment-id:3837591484 --> @rudrankriyam commented on GitHub (Feb 2, 2026): @cursor please implement this issue. Add the DeleteAnalyticsReportRequest client method and the CLI command.
Author
Owner

@cursor[bot] commented on GitHub (Feb 2, 2026):

I added the DeleteAnalyticsReportRequest client method plus delete result output formatting, and wired a new analytics requests delete subcommand that requires --confirm while keeping analytics requests listing as the default behavior. I also added mocked HTTP coverage for the DELETE endpoint and CLI cmdtests for the new flag validation cases.

Tests I ran:

  • go test ./internal/asc -run TestDeleteAnalyticsReportRequest_SendsRequest
  • go test ./internal/cli/cmdtest -run TestAnalyticsValidationErrors

View PR
Open in Cursor Open in Web

<!-- gh-comment-id:3837591718 --> @cursor[bot] commented on GitHub (Feb 2, 2026): I added the DeleteAnalyticsReportRequest client method plus delete result output formatting, and wired a new `analytics requests delete` subcommand that requires `--confirm` while keeping `analytics requests` listing as the default behavior. I also added mocked HTTP coverage for the DELETE endpoint and CLI cmdtests for the new flag validation cases. Tests I ran: - `go test ./internal/asc -run TestDeleteAnalyticsReportRequest_SendsRequest` - `go test ./internal/cli/cmdtest -run TestAnalyticsValidationErrors` <a href="https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/415"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/view-pr-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/view-pr-light.png"><img alt="View PR" width="86" height="28" src="https://cursor.com/assets/images/view-pr-light.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-baf67c81-25cf-4fe3-8f6f-68fd325485cb"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-baf67c81-25cf-4fe3-8f6f-68fd325485cb"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>
Author
Owner

@rudrankriyam commented on GitHub (Feb 3, 2026):

Resolved in #415.

<!-- gh-comment-id:3840418479 --> @rudrankriyam commented on GitHub (Feb 3, 2026): Resolved in #415.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#119
No description provided.