Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: filtering TestFlight builds by bundle ID returns an error #249

Open
sjmadsen opened this issue Apr 22, 2021 · 1 comment
Open

Bug: filtering TestFlight builds by bundle ID returns an error #249

sjmadsen opened this issue Apr 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@sjmadsen
Copy link

🌎 Environment

  • OS: macOS
  • Version/Release: 11.2.3

💬 Description

Running asc testflight builds list --filter-bundle-ids <bundle ID> returns an error: Error: Specified apps were non found / do not exist: [].

Running the same command without --filter-bundle-ids includes builds with the original bundle ID in the list. It definitely exists.

Further, the error is weird, because a peek at the source indicates that the part in brackets at the end should be the list of bundle IDs asked for that don't exist. If it's empty, the two collections should be equal and the guard above it should pass.

We use separate bundle IDs for prod and staging builds of the same app. The staging bundle ID (com.company.app-staging) filters just fine, while the prod bundle ID (com.company.app) triggers this problem.

🦶 Reproduction Steps

Steps to reproduce the behavior, provide an example of the command line issued:

  1. asc testflight builds list --filter-bundle-ids <bundle ID>

🤔 Expected Results

A list of existing builds, filtered to just the ones for the matching bundle.

😲 Actual Results

An error, even though I can see matching builds when I don't filter by bundle ID.

@sjmadsen sjmadsen added the bug Something isn't working label Apr 22, 2021
@sjmadsen
Copy link
Author

I did some debugging on this today and the filtering in Apple's API is not exact or even a prefix match. If you filter on a bundle ID of company, the response will contain data for any app that has company anywhere in its bundle ID.

I am happy to make a PR for this, but before I spend more time on it I'd like to get some feedback from others. Is it preferable for asc to act like the API and return substring matches for --filter-bundle-ids or to behave like the original expectation of an exact match?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant