ittybittyapps / appstoreconnect-cli

An easy to use command-line tool for interacting with the Apple AppStore Connect API
MIT License
173 stars 17 forks source link

Bug: You can not effectively filter beta testers by beta group #169

Closed orj closed 4 years ago

orj commented 4 years ago

🌎 Environment

💬 Description

Filtering by group name and app identifier is not allowed.

🦶 Reproduction Steps

Steps to reproduce the behavior:

  1. ./asc testflight betatesters list --filter-group-names "XYZ" --filter-identifiers com.example.App1

🤔 Expected Results

That the beta testers of the group "XYZ" for the app with the bundle id "com.example.App1" would be displayed.

A common use case for this command would be to show the users in a particular group for a particular app.

Without being able to filter by group name and app this command isn't very useful outside of listing all the beta-testers.

😲 Actual Results

The following error is printed:

Error: Only one of these relationship filters ('app-id/ bundle-id', 'group-name') can be applied.
orj commented 4 years ago

What I'm looking for is the equivalent of the API call: List All Beta Testers in a BetaGroup

adamjcampbell commented 4 years ago

@orj the API you listed isn't actually being called via this command. As such #176 has been raised. This command is for retrieving the entire set of testers and filtering from there. Such a thing could be implemented in this command via filling out multiple relationships and filtering down.

Do you think that is also worthwhile? We also seem to have a limitation if relationships go over multiple pages we don't fetch all the relationship data at this time.

n-a-f-i-s-a commented 4 years ago

@adamjcampbell I have a question about the above comment about getting the entire set of beta testers..when I used list beta groups endpoint for the scenario where we input both app id and group name I also pass these as filters to the betagroup end point and mention beta testers as included..so does it actually bring all betatesters or based on the filters I passed (which are identifiers and group names) it gets only the relevant beta testers?

orj commented 4 years ago

@orj the API you listed isn't actually being called via this command.

Yes I realise that. I was more point at it as an example of the API that does what I want.