Skip to content

Pagy::OverflowError in Avo::AssociationsController#index expected :page in 1..2; got 3 #3489

@johnvtroy

Description

@johnvtroy

Describe the bug

Getting Pagy::OverflowError in Avo::AssociationsController#index expected :page in 1..2; got 3 when using go back on has many record when changing record per page filter

Reproduction repository for the bug

https://github.com/johnvtroy/pagy_bug

Steps to use in the reproduction repository

Steps to reproduce the behavior:

set config.via_per_page = 16 in avo.rb

  1. click on Posts
  2. click on My First Post
  3. change record per page on the Comments to 8
  4. click on page 3 of the comments
  5. open Comment
  6. click Go Back

Expected behavior & Actual behavior

Not sure what should happen

System configuration

Avo version: 3.15.0

Rails version: 7.2.2

Ruby version: 3.3.1

License type:

  • Community
  • Pro
  • [x ] Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • [ x] No

Screenshots or screen recordings

Additional context

Impact

  • [ x] High impact (It makes my app un-usable.)
  • Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • [x ] Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions