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

Wrong format of NumberLong in query history

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • Not Needed

      Problem Statement/Rationale

      A corresponding GitHub Issue: https://github.com/mongodb-js/compass/issues/3129

      Steps to Reproduce

      • Filter by `{ userid: NumberLong('894303306233552937') }`
      • Observe that in the query history, this is shown as `{ userid: 894303306233552900 }`

      Expected Results

      `{ userid: NumberLong('894303306233552937') }` is shown in the query history.

      Actual Results

      `{ userid: 894303306233552900 }` is shown in the query history.

      Additional Notes

      894303306233552937 is outside of the safe integer range in JS,  they almost certainly actually wanted `{ userid: NumberLong('894303306233552937') }`, instead of `{ userid: NumberLong(894303306233552937) }`.

            Assignee:
            Unassigned Unassigned
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: