[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: HTML File 6387c67aa528146791f41818_log     File Project Name.mp4     PNG File image (5).png    
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Ragfish

 Description   

Originally reported in Slack by emil.zegers@mongodb.com

Problem Statement/Rationale

What 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 Reproduce

How 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 Results

What do you expect to happen?

I can paginate through results even if I can't see how many results there are.

Actual Results

What do you observe is happening?

"Next page" control is disabled.

Additional Notes

Any 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 COMPASS-6340 (#3916)
Branch: 1.35-releases
https://github.com/mongodb-js/compass/commit/a953221af8b851997847e8d50d28e715c764f5f0

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 COMPASS-6340 (#3916)
Branch: fix-missing-name-prop
https://github.com/mongodb-js/compass/commit/a953221af8b851997847e8d50d28e715c764f5f0

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 COMPASS-6340 (#3916)
Branch: main
https://github.com/mongodb-js/compass/commit/a953221af8b851997847e8d50d28e715c764f5f0

Generated at Wed Feb 07 22:42:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.