Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Issues
  • #2271
Closed
Open
Issue created Sep 28, 2022 by tancrede@tancrede

Show every HasMany child

dear developers of this wonderful gem,

I realize that sometimes, I'd like to display all the children of a given model in his dashboard. Actually, the only way I know to override the default pagination value is to use the limit: option and set an arbitrary large number

ATTRIBUTE_TYPES = {
    names: Field::HasMany.with_options(limit: 100),
  }.freeze

It would be very nice to have a special value that says : display all the children. Something like this :

ATTRIBUTE_TYPES = {
    names: Field::HasMany.with_options(limit: 0),
  }.freeze

I hope this idea is not too strange and it will interest at least one of you

Please continu the good work around Administrate,

Best

Assignee
Assign to
Time tracking