Prevent inserting numbers over MAX_SAFE_INTEGER in ejson editor

XMLWordPrintableJSON

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

      https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER 

      At the moment it will lead to a loss of precision if a user goes to edit a document in the ejson editor, pastes in a large number, and saves it. Let's instead show a descriptive error, instructing the user on what to do (use string with ejson syntax).
      If possible let's also give an inline editor syntax hint. 

            Assignee:
            Unassigned
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: