[COMPASS-4206] ObjectId from jsonl file is not being imported as an ObjectId Created: 12/Mar/20  Updated: 29/Oct/23  Resolved: 23/Mar/20

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

Type: Bug Priority: Critical - P2
Reporter: Massimiliano Marcon Assignee: Lucas Hrabovsky (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File coll.json    
Sprint: Iteration Zebra

 Description   

Test collection attached.

{"_id":{"$oid":"5e5ea7558d35931a05eafec0"}, ...}

became this:

{
    "_id": {
        "id": {
            "0": 94,
            "1": 94,
            "2": 167,
            "3": 85,
            "4": 141,
            "5": 53,
            "6": 147,
            "7": 26,
            "8": 5,
            "9": 234,
            "10": 254,
            "11": 192
        }
    }, ...
}



 Comments   
Comment by Githook User [ 02/Apr/20 ]

Author:

{'name': 'Lucas Hrabovsky', 'email': 'hrabovsky.lucas@gmail.com', 'username': 'imlucas'}

Message: backport: fix(import): COMPASS-4206: Fix type detection and export formatting. (#1925)

  • fix(import): COMPASS-4206: Fix type detection and export formatting.

https://github.com/mongodb-js/compass-import-export/pull/144

  • fix(import): COMPASS-4026: More fixes for importing EJSON
  • chore(security): npm audit fix

fixed 121 of 256 vulnerabilities in 36223 scanned packages
Branch: 1.21-releases
https://github.com/mongodb-js/compass/commit/39d0ad9c6908062a50f51be1b8beddf210b29e10

Comment by Githook User [ 23/Mar/20 ]

Author:

{'name': 'Lucas Hrabovsky', 'username': 'imlucas', 'email': 'hrabovsky.lucas@gmail.com'}

Message: fix(import): COMPASS-4206: Fix type detection and export formatting. (#1925)

  • fix(import): COMPASS-4206: Fix type detection and export formatting.

https://github.com/mongodb-js/compass-import-export/pull/144

  • fix(import): COMPASS-4026: More fixes for importing EJSON
  • chore(security): npm audit fix

fixed 121 of 256 vulnerabilities in 36223 scanned packages
Branch: master
https://github.com/mongodb-js/compass/commit/951f7a5e73e3fb339bef1d0d681dc6e0e4c59245

Comment by Lucas Hrabovsky (Inactive) [ 19/Mar/20 ]

https://github.com/mongodb-js/compass/pull/1925

Comment by Githook User [ 19/Mar/20 ]

Author:

{'name': 'Lucas Hrabovsky', 'username': 'imlucas', 'email': 'hrabovsky.lucas@gmail.com'}

Message: fix(import): COMPASS-4206: Fix type detection and export formatting.

https://github.com/mongodb-js/compass-import-export/pull/144
Branch: fix-import-json-type-detection
https://github.com/mongodb-js/compass/commit/5307a65534725e74e54885083f044e52d8d1fd1f

Comment by Lucas Hrabovsky (Inactive) [ 19/Mar/20 ]

https://github.com/mongodb-js/compass-import-export/pull/144

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