Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-470

Show UUID fields as UUID in document editor

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • Not Needed
    • Iteration Utahraptor, Iteration Wendiceratops, Iteration Xiaosaurus

      Problem Statement/Rationale

      I have a collection with documents containing UUID fields (standard, not legacy). When I browse those documents in the extension, they are shown like this:

      {
      "id": "5e58eae46015f74c61dd6af0",
      "myuuid": {
      "$binary":

      { "base64": "ILGr2eKZSmqkQX1OZsoICQ==", "subType": "04" }

      }
      }

      I would have expected them to be shown as:

      {
      "id": "5e58eae46015f74c61dd6af0",
      "myuuid": UUID("20b1abd9-e299-4a6a-a441-7d4e66ca0809")
      }

      Steps to Reproduce

      Open a document from the side bar that contains a UUID field

      Expected Results

      I would have expected them to be shown as:

      {
      "id": "5e58eae46015f74c61dd6af0",
      "myuuid": UUID("20b1abd9-e299-4a6a-a441-7d4e66ca0809")
      }

      Actual Results

      UUID fields are shown like this:

      {
      "id": "5e58eae46015f74c61dd6af0",
      "myuuid": {
      "$binary":

      { "base64": "ILGr2eKZSmqkQX1OZsoICQ==", "subType": "04" }

      }
      }

      Additional Notes

      User voice: https://feedback.mongodb.com/forums/929236-mongodb-for-vs-code/suggestions/42918633-show-uuid-fields-as-uuid-in-document-editor 

            Assignee:
            paula.stachova@mongodb.com Paula Stachova
            Reporter:
            gaurab.aryal@mongodb.com Gaurab Aryal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: