[COMPASS-4262] Data import does not support embedded JSON anymore Created: 30/Apr/20  Updated: 29/Oct/23  Resolved: 09/Dec/20

Status: Closed
Project: Compass
Component/s: Import/Export
Affects Version/s: 1.21.0
Fix Version/s: 1.22.0

Type: Bug Priority: Major - P3
Reporter: Heber Lopez Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed

 Description   

<!--- 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 -->>

 



 Comments   
Comment by Massimiliano Marcon [ 09/Dec/20 ]

JSON is now imported as is.

Generated at Wed Feb 07 22:35:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.