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

Count in Aggregation tab is not updated after a deletion after first calculation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.35.0
    • Affects Version/s: 1.33.1
    • Component/s: Aggregation pipeline, Count
    • Labels:
      None
    • Environment:
      mac 12.6
      Compass 1.33.1
    • 2
    • Needed
    • Hide

      In this ticket we introduced a new button to refresh the count of documents on Run Aggregation screen.

      Show
      In this ticket we introduced a new button to refresh the count of documents on Run Aggregation screen.
    • Iteration Quahog, Iteration Ragfish

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Please be sure to attach relevant logs with any sensitive data redacted.

      After running an aggregation pipeline, Count is not accurate after a deletion, even after clicking "Run (aggregation button)" button. Must use "Edit" button>"Run">"count results" link. (This is also a bit clunky as "count results" link is an additional step).

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      1. Run aggregate query
      2. Get count
      3. Delete or add a document in a different tab
      4. Click Run from the original tab to re-run the aggregate, the count does not refresh
        To see the updated count
      5. Click Edit
      6. Re-run the aggregate and then click to show the count, the updated count is displayed

      Expected Results

      What do you expect to happen?

      Accurate count always

      Actual Results

      What do you observe is happening?

      Count is not being updated after a deletion in Documents tab or deletion using mongo shell.

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            basit.chonka@mongodb.com Basit Chonka
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: