[DOCS-12823] Documetation : mongoimport Created: 23/Jun/19  Updated: 30/Oct/23  Resolved: 01/Oct/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Frederic T. Assignee: Nathan Contino (Inactive)
Resolution: Fixed Votes: 0
Labels: Bug, docs-onboarding-candidate
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Documentaion


Attachments: File docs_mongodb_com_manual_reference_program_mongoimport.patch    
Participants:
Days since reply: 4 years, 19 weeks, 1 day ago
Epic Link: DOCSP-1769

 Description   

Description

Documentation page : https://docs.mongodb.com/manual/reference/program/mongoimport

  • Section :

Import CSV with Specified Field Types
               Sample :
               Consider the following CSV data:

Katherine Gray, 1996-02-03, F, 1235, TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQ...
Albert Gilbert, 1992-04-24, T, 13, Q3VwY2FrZSBpcHN1bSBkb2xvciBzaXQgYW1...

should be :

Katherine Gray, 1996-02-03, false, 1235, TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQ...
Albert Gilbert, 1992-04-24, true, 13, Q3VwY2FrZSBpcHN1bSBkb2xvciBzaXQgYW1...

else it's don't work

Scope of changes

  • Review the Example in question
  • Test using mongoimport 4.2, 4.0, and 3.6
    • Does setting T/F and using `<fieldName>.boolean` work? Does it have to be true/false
  • Secondary issue - we are using --columnsHaveTypes to set the rich type of the field. However, if a user looks only at --fields, there is no reference at all to setting field types. --fields should have a link to --columnsHaveTypes that includes a description of how using both options together lets users set field types for each field.
  • The example must also call out that its using --columnsHaveTypes} to set field type data.

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-12823: tweak
Branch: v3.4
https://github.com/mongodb/docs/commit/cf43aaf56e02c9ab570dd62ddd0962ab4054319d

Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'nathan-contino-mongo', 'email': 'nathan.contino@mongodb.com', 'name': 'nathan-contino-mongo'}

Message: DOCS-12823: fixed formatting of binary, boolean fields in example
Branch: v3.4
https://github.com/mongodb/docs/commit/9e50c372893e726e7e8504e37c2f9ee4563b513e

Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-12823: tweak
Branch: v3.6
https://github.com/mongodb/docs/commit/57aaa5ccebe560fda860e7baf8a0abe721596b5c

Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'nathan-contino-mongo', 'email': 'nathan.contino@mongodb.com', 'name': 'nathan-contino-mongo'}

Message: DOCS-12823: fixed formatting of binary, boolean fields in example
Branch: v3.6
https://github.com/mongodb/docs/commit/acd8158ef5b69fb809fa0d1e0472379d09773cbe

Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-12823: tweak
Branch: v4.0
https://github.com/mongodb/docs/commit/ac935fcd6a368813ae492df417dfc8b971ca842f

Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'nathan-contino-mongo', 'email': 'nathan.contino@mongodb.com', 'name': 'nathan-contino-mongo'}

Message: DOCS-12823: fixed formatting of binary, boolean fields in example
Branch: v4.0
https://github.com/mongodb/docs/commit/708f927116de7e3b578e7a0262b36b566fbe0385

Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'kay-kim', 'email': 'kay.kim@10gen.com', 'name': 'Kay Kim'}

Message: DOCS-12823: tweak
Branch: master
https://github.com/mongodb/docs/commit/e16b86bf88b46a074c19e026d6e25fec833588dc

Comment by Githook User [ 01/Oct/19 ]

Author:

{'name': 'nathan-contino-mongo', 'username': 'nathan-contino-mongo', 'email': 'nathan.contino@mongodb.com'}

Message: DOCS-12823: fixed formatting of binary, boolean fields in example
Branch: master
https://github.com/mongodb/docs/commit/afe985563b468bccf912f4e8e3aa92dc6d748cdb

Comment by Nathan Contino (Inactive) [ 12/Sep/19 ]

While T and F should absolutely be changed to true and false, the binary field (the last one) has also been giving me errors when I try to import on 4.2, 4.0, and 3.6. Investigating still.

Generated at Thu Feb 08 08:06:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.