Skip to content

`glab variable list` does not paginate

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: glab version 1.22.0 (2022-01-10)
  • Operating System and version: Darwin MacBook-Pro.localdomain 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 x86_64

Summary

The glab variable list shows a limited subset of project or group variables when called on a project with > 20 variables defined.

Steps to reproduce

  1. Create a Gitlab Project or Group with > 20 variables defined
  2. Run glab variable list within that project's directory
  3. Observe missing variable output

What is the current bug behavior?

Results are limited to 20, or presumably whatever server pagination limit is set to

What is the expected correct behavior?

All of the variables

Relevant logs and/or screenshots

Possible fixes

MR and Issue commands support pagination, so likely we just need to add similar logic to this command.

Edited by Ted Hahn
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information