[DOCS-12703] Pagination Example Within "source/reference/method/cursor.skip.txt" is Incorrect Created: 15/May/19 Updated: 30/Oct/23 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Shinsuke Yamato | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 1 year, 14 weeks, 2 days ago |
| Epic Link: | DOCSP-1769 |
| Story Points: | 0.1 |
| Description |
DescriptionExample currently has... `.skip( pageNumber > 0 ? ( ( pageNumber - 1 ) * nPerPage ) : 0 )` but it should be... `.skip( pageNumber > 0 ? ( pageNumber * nPerPage ) : 0 )` Without this fix, the example would result in zero `nPerPage` getting skipped till `pageNumber` = 2. Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Education Bot [ 31/Oct/22 ] |
|
Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you! |
| Comment by Shinsuke Yamato [ 15/May/19 ] |
|
Example link should be https://docs.mongodb.com/manual/reference/method/cursor.skip/#pagination-example. Not sure why it's adding a trailing bracket which is preventing the link to work. |