Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8239

Collections let me navigate to a page which has zero documents

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.44.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS: Windows 10
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • Not Needed
    • Iteration Jupiter

      Problem Statement/Rationale

      On the UI when I go to any mongo collection, I can sometimes browse pages forward even after I have ran out of documents. This seems to happen randomly, between different collections for me: some stop the pagination to the actual last page, some let me browse to one extra page, sometimes I've browsed even three empty pages after the actual mongo documents have run out. Although if I test only one collection, the pagination works consistently on it. Does MongoDB Compass remember deleted documents and the collection pagination adds them to the total amount of documents? 

      Steps to Reproduce

      Hard to say, maybe have a collection of documents for two pages, delete enough documents to have one actual page and check if you can still navigate to page 2?

      Expected Results

      I expect to not be able to navigate to a page with no content.

      Actual Results

      I sometimes can navigate to a page with 0 collections.

            Assignee:
            paula.stachova@mongodb.com Paula Stachova
            Reporter:
            egivic@gmail.com Santeri Kivikoskela
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: