1602 / 1602/railway-pagination
negative page numbers
- Dominant language
- JavaScript
- Stars
- 9
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
If I add pagination logic to controller as described in the README then I get negative page numbers in the "paginate" view helper.
total: 9 objects
per page: 5
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue mentions a pagination logic in a controller and a 'paginate' view helper. Start by locating the pagination plugin's source code, likely in a lib or helper directory. Examine how total objects and per-page values are used to calculate page numbers. Look for any edge-case handling when total objects are less than per-page. Test the pagination with the given example (total: 9, per page: 5) to reproduce the negative numbers.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100