Skip to content

Allow to set a global per_page in the configuration #503

Closed

Description

@jouve

Description of the problem, including code/CLI snippet

This is a feature request.

I would like to be able to set per_page globally in the configuration file instead of setting it for each request.

Expected Behavior

Setting per_page in http://python-gitlab.readthedocs.io/en/stable/cli.html#configuration would set per page for all request with the configured gitlab.Gitlab instance

Actual Behavior

per_page must be given everytime in ListMixin.list.

Specifications

The setting could then be defined in:

  • the configuration file

  • gitlab.Gitlab constructor

  • ListMixin.list

  • python-gitlab version: python-gitlab==1.4.0

  • API version you are using (v3/v4): v4

  • Gitlab server version (or gitlab.com): 9.4.5-ee

Activity

  1. locked as resolved and limited conversation to collaborators on Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions