[COMPASS-6340] Can't paginate through view results Created: 01/Dec/22 Updated: 29/Oct/23 Resolved: 23/Dec/22 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | CRUD |
| Affects Version/s: | 1.34.1 |
| Fix Version/s: | 1.35.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Massimiliano Marcon | Assignee: | Basit Chonka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Story Points: | 3 |
| Documentation Changes: | Not Needed |
| Sprint: | Iteration Ragfish |
| Description |
|
Originally reported in Slack by emil.zegers@mongodb.com Problem Statement/RationaleWhat is going wrong? What action would you like the Engineering team to take? I save the output of an Aggregation pipeline created in Compass to a View and then open it. I can only access the first page with 20 results, not browse to the next. The View has 11000+ Documents. If I run db.collection.find({}).limit(30) I get 30 results (first 20, Type "it" for more, next 10). The View does not report total number of Documents, says N/A, see image. Has somebody else seen this behaviour too? I do not remember if viewing Views in Compass works different than regular Collections. Please be sure to attach relevant logs with any sensitive data redacted. Steps to ReproduceHow could an engineer replicate the issue you’re reporting? (max) I could not reproduce it on my side. The closest I got is by setting a small enough maxTimeMS when looking at a view on sample_mflix.movies that makes the count time out and N/A being displayed. In that case, I can't go to the next page. Expected ResultsWhat do you expect to happen? I can paginate through results even if I can't see how many results there are. Actual ResultsWhat do you observe is happening? "Next page" control is disabled. Additional NotesAny additional information that may be useful to include. |
| Comments |
| Comment by Githook User [ 03/Jan/23 ] |
|
Author: {'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}Message: fix(crud): enable next page button when count is unknown |
| Comment by Githook User [ 03/Jan/23 ] |
|
Author: {'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}Message: fix(crud): enable next page button when count is unknown |
| Comment by Githook User [ 23/Dec/22 ] |
|
Author: {'name': 'Basit', 'email': '1305718+mabaasit@users.noreply.github.com', 'username': 'mabaasit'}Message: fix(crud): enable next page button when count is unknown |