[DOCS-2882] Zip codes are sometimes represented as numbers instead of strings Created: 10/Mar/14  Updated: 09/Apr/14  Resolved: 09/Apr/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.3

Type: Bug Priority: Minor - P4
Reporter: Kamran K. Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 45 weeks ago

 Description   

Zip codes are sometimes represented as numbers in the docs. They should instead be represented as strings to prevent users from mistakenly trying to store zips as numbers, which will not work with zip codes such as 00501 (because JavaScript treats numbers with leading zeroes as octal numbers).

You can find a few instances with this command:

egrep -irI "zip.*[0-9]{5}" *



 Comments   
Comment by Githook User [ 09/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2882: zipcodes are strings afterall
Branch: master
https://github.com/mongodb/docs/commit/e3ee279d6283e1c6953956ce6ed89f000b73ef3c

Comment by Githook User [ 09/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2882: zipcodes are strings after all
Branch: v2.4
https://github.com/mongodb/docs/commit/f474861f5a351851d15f0031f32dea827ba25902

Comment by Githook User [ 09/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2882: changing zipcodes type
Branch: v2.4
https://github.com/mongodb/docs/commit/1baf3c9e1f1ed731a2dce63c4b248e4f16599b5c

Comment by Githook User [ 09/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2882: changing zipcodes type
Branch: master
https://github.com/mongodb/docs/commit/d6801e8512dd5d5f5608c774d94a516245355c39

Generated at Thu Feb 08 07:44:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.