[COMPASS-7157] Import thinks the m in field [m] is an array index Created: 31/Aug/23  Updated: 29/Oct/23  Resolved: 05/Sep/23

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

Type: Bug Priority: Major - P3
Reporter: Le Roux Bodenstein Assignee: Le Roux Bodenstein
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Story Points: 2
Documentation Changes: Not Needed

 Description   

Suppose you have a collection with one document like:

{ field: ['foo', 'bar'] }

When exported, this will result in the csv file:

field[0],field[1]
foo,bar

The code that imports that again is too loose, so it thinks the following are also array fields:

Length [m],Diameter [m]
1,2



 Comments   
Comment by Githook User [ 11/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: use-user-data-in-pipelines
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

Comment by Githook User [ 05/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: ga-releases
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

Comment by Githook User [ 05/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

Comment by Githook User [ 04/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: compass-7149-fix-query-bar-paste
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

Comment by Githook User [ 04/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: ci/update-electron
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

Comment by Githook User [ 04/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: unset_function_vars_test
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

Comment by Githook User [ 04/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: mongodb-5.8.1
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

Comment by Githook User [ 04/Sep/23 ]

Author:

{'name': 'Le Roux Bodenstein', 'email': 'lerouxb@gmail.com', 'username': 'lerouxb'}

Message: fix(import): don't treat non-numbers in CSV headers as array indexes COMPASS-7157 (#4780)

don't treat non-numbers as array indexes
Branch: main
https://github.com/mongodb-js/compass/commit/c3bd0035cf999e4440fa070992b2b7aa53dd79ca

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