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

Data import does not support embedded JSON anymore

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.22.0
    • Affects Version/s: 1.21.0
    • Component/s: Import/Export
    • Labels:
      None
    • Not Needed

      <!--- Please note this repository's Issue Tracker is not being watched.
      Issues are instead being tracked in our public Jira project:
      https://jira.mongodb.org/projects/COMPASS/summary
      -->

      <!--- Provide a general summary of the issue in the Title above -->

        1. Feature Request
          Defect - Data import does not support nested structures anymore as of 1.21.0
        1. Detailed Description
          <!--- Provide a detailed description of the change or addition you are proposing -->
          Since the release of version 1.21.0, when importing data into a collection where the data for a field is a JSON, content for the field is treated as a string by default and none of the selectable field types seem to be for JSON-like objects. This was not an issue on version 1.20.5

      Here is a screenshot of the newly released import flow and the different selectable field types, in my case the attribute is an array of strings
      ![image](https://user-images.githubusercontent.com/51335736/80751372-7fd10900-8ade-11ea-944d-97740280a9fa.png)

        1. Context
          <!--- Why is this change important to you? How would you use it? -->
          As it is working right now, importing an exported collection does not generate as output the same content. This is doable through CLI but it's something that was already supported and now it's not anymore
        1. Possible Implementation
          <!--- Optional: suggest an idea for implementing addition or change -->>

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            heber.lopez@globant.com Heber Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: