Wrong format of NumberLong in query history

XMLWordPrintableJSON

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

      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
              Reporter:
              Alena Khineika
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: