platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
224 stars 121 forks source link

Add pagination to the org:users command #1380

Closed pjcdawkins closed 6 months ago

pjcdawkins commented 6 months ago

Adds --count and --sort options to the org:users command (--count 0 to fetch all pages).

No specific --page option is provided as the API provides opaque cursor-based pagination which is powerful but could look confusing in this context.

bojanz commented 6 months ago

Notes from manual testing.

1) Doing platform organization:users -o my-internal-org --count 0 gives me:

[RuntimeException]          
Member user info not found  

2) When I use --page to go to the next page, I am not told that I am on another page, and I do not get any text directing me to the previous page. I only see the usual:

More users are available (displaying 20, total 143)

Show all users with: --count 0
View the next page with: --page aWyIwMUdQTkNZMVdNOUJSUUs3TThWU0RUUVc0SiJd

That feels a bit confusing.