[PR #342] [MERGED] Next URL ID extraction #453

Closed
opened 2026-02-26 22:31:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/342
Author: @cursor[bot]
Created: 1/30/2026
Status: Merged
Merged: 1/30/2026
Merged by: @rudrankriyam

Base: mainHead: cursor/next-url-id-extraction-7705


📝 Commits (1)

  • bc2a097 Fix user visible apps next URL parsing

📊 Changes

2 files changed (+19 additions, -2 deletions)

View changed files

📝 internal/cli/users/users_test.go (+11 -0)
📝 internal/cli/users/visible_apps.go (+8 -2)

📄 Description

Fix URL extraction for visibleApps relationships endpoint paths to correctly handle --next URLs from paginated responses.

The extractUserIDFromNextURL function previously only recognized paths like /v1/users/{id}/visibleApps. This PR updates the function to also correctly parse paths including the /relationships/ segment, such as /v1/users/{id}/relationships/visibleApps, which are generated by the "get" command for user visible apps relationships. This ensures that users can use --next URLs from these responses without error.



🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/342 **Author:** [@cursor[bot]](https://github.com/apps/cursor) **Created:** 1/30/2026 **Status:** ✅ Merged **Merged:** 1/30/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `main` ← **Head:** `cursor/next-url-id-extraction-7705` --- ### 📝 Commits (1) - [`bc2a097`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/bc2a0979d8dc2d4151526f4e14321ff5c5f8e40e) Fix user visible apps next URL parsing ### 📊 Changes **2 files changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/cli/users/users_test.go` (+11 -0) 📝 `internal/cli/users/visible_apps.go` (+8 -2) </details> ### 📄 Description Fix URL extraction for `visibleApps` relationships endpoint paths to correctly handle `--next` URLs from paginated responses. The `extractUserIDFromNextURL` function previously only recognized paths like `/v1/users/{id}/visibleApps`. This PR updates the function to also correctly parse paths including the `/relationships/` segment, such as `/v1/users/{id}/relationships/visibleApps`, which are generated by the "get" command for user visible apps relationships. This ensures that users can use `--next` URLs from these responses without error. --- --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 22:31:00 +03:00
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#453
No description provided.